mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-10 11:43:04 +08:00
[saco] Implement and match HasCollisionLoaded(...)
This commit is contained in:
@@ -1452,6 +1452,23 @@ bool unnamed_100B4B50(VECTOR *vecPos)
|
||||
|
||||
|
||||
|
||||
//----------------------------------------------------
|
||||
|
||||
bool HasCollisionLoaded(VECTOR *vec)
|
||||
{
|
||||
bool bResult = false;
|
||||
|
||||
_asm push 0
|
||||
_asm push vec
|
||||
_asm mov edx, 0x410CE0
|
||||
_asm call edx
|
||||
_asm mov bResult, al
|
||||
_asm pop edx
|
||||
_asm pop edx
|
||||
|
||||
return bResult;
|
||||
}
|
||||
|
||||
//----------------------------------------------------
|
||||
|
||||
|
||||
|
||||
@@ -47,3 +47,5 @@ OBJECT_TYPE * GamePool_GetObject();
|
||||
|
||||
void ReplaceBuildingModel(ENTITY_TYPE *pEntity, int iModelID);
|
||||
int GetInvalidModelInfoCount();
|
||||
|
||||
bool HasCollisionLoaded(VECTOR *vec);
|
||||
|
||||
Reference in New Issue
Block a user