[saco] Rename and update CGame::sub_100A00F0()

This commit is contained in:
RD42
2024-11-15 19:05:48 +08:00
parent 5443357df1
commit 5e23966f5f
2 changed files with 9 additions and 11 deletions

View File

@ -100,19 +100,17 @@ BYTE CGame::FindFirstFreePlayerPedSlot()
//-----------------------------------------------------------
BYTE CGame::sub_100A00F0()
BYTE CGame::FUNC_100A00F0()
{
BYTE result = 0;
BYTE v1 = 2;
while(v1 != 210)
{
if(bUsedPlayerSlots[v1] == 1)
{
result++;
BYTE count = 0;
BYTE x = 2;
while(x!=PLAYER_PED_SLOTS) {
if(bUsedPlayerSlots[x] == TRUE) {
count++;
}
v1++;
x++;
}
return result;
return count;
}
//-----------------------------------------------------------

View File

@ -44,6 +44,7 @@ private:
public:
BYTE FindFirstFreePlayerPedSlot();
BYTE FUNC_100A00F0();
int GetWeaponModelIDFromWeapon(int iWeaponID);
BOOL IsKeyPressed(int iKeyIdentifier);
@ -137,7 +138,6 @@ public:
void sub_100A0010();
void sub_100A0090(int a1, int a2);
BYTE sub_100A00C0();
BYTE sub_100A00F0();
void sub_100A0110();
void sub_100A0210();
void sub_100A0250();