From 9e4098f3a57b37db76966df71b8afc0898d235d9 Mon Sep 17 00:00:00 2001 From: Alexander Akulich Date: Thu, 14 Jul 2022 23:35:34 +0300 Subject: [PATCH] prediction/entity: Add GetPos() (sync the API with server/entity) --- src/game/client/prediction/entity.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/game/client/prediction/entity.h b/src/game/client/prediction/entity.h index d50e805ed..ad23c4c9a 100644 --- a/src/game/client/prediction/entity.h +++ b/src/game/client/prediction/entity.h @@ -48,6 +48,7 @@ public: class CCollision *Collision() { return GameWorld()->Collision(); } CEntity *TypeNext() { return m_pNextTypeEntity; } CEntity *TypePrev() { return m_pPrevTypeEntity; } + const vec2 &GetPos() const { return m_Pos; } float GetProximityRadius() const { return m_ProximityRadius; } void Destroy() { delete this; }