diff --git a/saco/game/common.h b/saco/game/common.h index 9be2391..d97ba13 100644 --- a/saco/game/common.h +++ b/saco/game/common.h @@ -29,6 +29,10 @@ typedef struct _VECTOR2D { float X,Y; } VECTOR2D, *PVECTOR2D; +typedef struct _FRECT { + float l,t,r,b; +} FRECT, *PFRECT; + typedef struct _MATRIX4X4 { VECTOR right; DWORD flags; diff --git a/saco/game/entity.cpp b/saco/game/entity.cpp index 141353b..2e67935 100644 --- a/saco/game/entity.cpp +++ b/saco/game/entity.cpp @@ -179,12 +179,12 @@ void CEntity::GetBoundCentre(PVECTOR Vector) //----------------------------------------------------------- -void CEntity::FUNC_1009EF20(int a2) +void CEntity::GetBoundRect(PFRECT Rect) { DWORD dwEnt = (DWORD)m_pEntity; if(!dwEnt) return; - _asm push a2 + _asm push Rect _asm mov ecx, dwEnt _asm mov edx, 0x534120 _asm call edx diff --git a/saco/game/entity.h b/saco/game/entity.h index 4fae0b3..8332660 100644 --- a/saco/game/entity.h +++ b/saco/game/entity.h @@ -19,10 +19,10 @@ public: void FUNC_1009ED40(float fX, float fY, float fZ); // unused void GetTurnSpeedVector(PVECTOR Vector); void SetTurnSpeedVector(VECTOR Vector); - void FUNC_1009EF20(int a2); // unused void ApplyTurnSpeed(); // unused float GetDistanceFromCentreOfMassToBaseOfModel(); // unused void GetBoundCentre(PVECTOR Vector); + void GetBoundRect(PFRECT Rect); // unused UINT GetModelIndex(); void TeleportTo(float x, float y, float z);