mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-10 19:53:04 +08:00
[saco] Implement and match GetInvalidModelInfoCount()
This commit is contained in:
@@ -1197,6 +1197,20 @@ void ReplaceBuildingModel(ENTITY_TYPE *pEntity, int iModelID)
|
||||
_asm call edx
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
int GetInvalidModelInfoCount()
|
||||
{
|
||||
DWORD *dwModelInfos = (DWORD *)0xA9C068;
|
||||
int iCount = 0;
|
||||
for(int i = 0; i != 19000; i++)
|
||||
{
|
||||
if(dwModelInfos[i] == NULL)
|
||||
iCount++;
|
||||
}
|
||||
return iCount;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------
|
||||
// Translate Weapon model ID into actual weapon ID.
|
||||
|
||||
|
||||
+1
-1
@@ -40,4 +40,4 @@ DUMMY_TYPE * GamePool_GetDummy();
|
||||
OBJECT_TYPE * GamePool_GetObject();
|
||||
|
||||
void ReplaceBuildingModel(ENTITY_TYPE *pEntity, int iModelID);
|
||||
|
||||
int GetInvalidModelInfoCount();
|
||||
|
||||
Reference in New Issue
Block a user