mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 22:47:29 +08:00
[bot] Rename CNetGame::sub_415EC0
to CNetGame::SetVehicleAdded
This commit is contained in:
parent
7d46ed86fa
commit
3b6fa0fefd
@ -40,7 +40,7 @@ BOOL bPlayerSlotState[MAX_PLAYERS];
|
||||
ONFOOT_SYNC_DATA ofSync;
|
||||
char unnamed_3[1000][68];
|
||||
BYTE unnamed_8[MAX_PLAYERS];
|
||||
BOOL unnamed_7[MAX_VEHICLES];
|
||||
BOOL bVehicleSlotState[MAX_VEHICLES];
|
||||
char unnamed_4[1000][63];
|
||||
BYTE byteMySeatID;
|
||||
|
||||
@ -145,7 +145,7 @@ void CNetGame::ShutdownForGameModeRestart()
|
||||
memset(unnamed_3,0,sizeof(unnamed_3));
|
||||
memset(unnamed_4,0,sizeof(unnamed_4));
|
||||
memset(unnamed_5,0,sizeof(unnamed_5));
|
||||
memset(unnamed_7,0,sizeof(unnamed_7));
|
||||
memset(&bVehicleSlotState[0],0,sizeof(BOOL)*MAX_VEHICLES);
|
||||
memset(unnamed_8,0,sizeof(unnamed_8));
|
||||
memset(&ofSync,0,sizeof(ONFOOT_SYNC_DATA));
|
||||
memset(&bPlayerSlotState[0],0,sizeof(BOOL)*MAX_PLAYERS);
|
||||
@ -214,7 +214,7 @@ void CNetGame::Init(PCHAR szHostOrIp, int iPort,
|
||||
memset(unnamed_3,0,sizeof(unnamed_3));
|
||||
memset(unnamed_4,0,sizeof(unnamed_4));
|
||||
memset(unnamed_5,0,sizeof(unnamed_5));
|
||||
memset(unnamed_7,0,sizeof(unnamed_7));
|
||||
memset(&bVehicleSlotState[0],0,sizeof(BOOL)*MAX_VEHICLES);
|
||||
memset(unnamed_8,0,sizeof(unnamed_8));
|
||||
memset(&bPlayerSlotState[0],0,sizeof(BOOL)*MAX_PLAYERS);
|
||||
field_1DE = 0;
|
||||
@ -570,11 +570,11 @@ void CNetGame::SetPlayerAdded(PLAYERID playerId, BOOL a2)
|
||||
}
|
||||
}
|
||||
|
||||
void CNetGame::sub_415EC0(VEHICLEID VehicleID, BOOL a2)
|
||||
void CNetGame::SetVehicleAdded(VEHICLEID VehicleID, BOOL a2)
|
||||
{
|
||||
if(VehicleID < MAX_VEHICLES)
|
||||
{
|
||||
unnamed_7[VehicleID] = a2;
|
||||
bVehicleSlotState[VehicleID] = a2;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -95,11 +95,11 @@ public:
|
||||
void ResetPlayerPool();
|
||||
void ShutdownForGameModeRestart();
|
||||
|
||||
void sub_415EC0(VEHICLEID VehicleID, BOOL a2);
|
||||
BOOL IsPlayerAdded(PLAYERID playerId);
|
||||
void SetMyZAngle(float fAngle);
|
||||
|
||||
void SetPlayerAdded(PLAYERID playerId, BOOL a2);
|
||||
void SetVehicleAdded(VEHICLEID VehicleID, BOOL a2);
|
||||
|
||||
void StopRecordingPlayback();
|
||||
};
|
||||
|
@ -25,7 +25,7 @@ CVehiclePool::~CVehiclePool()
|
||||
|
||||
BOOL CVehiclePool::Delete(VEHICLEID VehicleID)
|
||||
{
|
||||
pNetGame->sub_415EC0(VehicleID, FALSE);
|
||||
pNetGame->SetVehicleAdded(VehicleID, FALSE);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user