mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-11-23 22:39:39 +00:00
[bot] Update CVehiclePool ctor
This commit is contained in:
parent
93fd944b72
commit
7e0bd528fa
@ -14,6 +14,7 @@
|
||||
|
||||
#define MAX_PLAYER_NAME 24
|
||||
#define MAX_PLAYERS 1000
|
||||
#define MAX_VEHICLES 2000
|
||||
#define MAX_SETTINGS_STRING 256
|
||||
|
||||
typedef struct _GAME_SETTINGS {
|
||||
@ -33,6 +34,8 @@ typedef struct _GAME_SETTINGS {
|
||||
#include "../raknet/SAMPRPC.h"
|
||||
|
||||
typedef unsigned short PLAYERID;
|
||||
typedef unsigned short VEHICLEID;
|
||||
|
||||
#include "scrtimers.h"
|
||||
#include "npcmode.h"
|
||||
|
||||
|
@ -1,10 +1,14 @@
|
||||
|
||||
#include "vehiclepool.h"
|
||||
#include "../main.h"
|
||||
|
||||
//----------------------------------------------------
|
||||
|
||||
CVehiclePool::CVehiclePool()
|
||||
{
|
||||
// TODO: CVehiclePool::CVehiclePool W: 0041A890 L: 080B9408
|
||||
for(unsigned short i = 0; i < 2000; i++) {
|
||||
field_84D0[i] = 0;
|
||||
// loop through and initialize all net players to null and slot states to false
|
||||
for(VEHICLEID VehicleID = 0; VehicleID < MAX_VEHICLES; VehicleID++) {
|
||||
field_84D0[VehicleID] = 0;
|
||||
}
|
||||
}
|
||||
|
||||
//----------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user