[saco] Implement and match GetInvalidModelInfoCount()

This commit is contained in:
RD42
2024-05-05 18:21:21 +08:00
parent ddb2440aab
commit 29fc46aa00
2 changed files with 15 additions and 1 deletions
+14
View File
@@ -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
View File
@@ -40,4 +40,4 @@ DUMMY_TYPE * GamePool_GetDummy();
OBJECT_TYPE * GamePool_GetObject();
void ReplaceBuildingModel(ENTITY_TYPE *pEntity, int iModelID);
int GetInvalidModelInfoCount();