[server] Implement CVehiclePool::GetModelCount()

This commit is contained in:
RD42 2023-12-13 23:59:53 +08:00
parent 05c50379c2
commit 68cd566ffc
2 changed files with 12 additions and 0 deletions

View File

@ -25,3 +25,13 @@ BOOL CVehiclePool::Delete(VEHICLEID VehicleID)
return FALSE; return FALSE;
} }
int CVehiclePool::GetModelCount()
{
int iCount=0;
for (int i=0; i!=212; i++) {
if(field_0[i]) {
iCount++;
}
}
return iCount;
}

View File

@ -15,6 +15,8 @@ public:
~CVehiclePool(); ~CVehiclePool();
BOOL Delete(VEHICLEID VehicleID); BOOL Delete(VEHICLEID VehicleID);
int GetModelCount();
}; };
#endif #endif