mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 14:27:16 +00:00
(svn r3193) Staticise the vehicle position hash
This commit is contained in:
parent
784d41b650
commit
62b2b4613f
@ -355,6 +355,8 @@ bool AllocateVehicles(Vehicle **vl, int num)
|
||||
}
|
||||
|
||||
|
||||
static VehicleID _vehicle_position_hash[0x1000];
|
||||
|
||||
void *VehicleFromPos(TileIndex tile, void *data, VehicleFromPosProc *proc)
|
||||
{
|
||||
int x,y,x2,y2;
|
||||
|
@ -492,9 +492,6 @@ static inline Vehicle *GetFirstVehicleFromSharedList(Vehicle *v)
|
||||
return u;
|
||||
}
|
||||
|
||||
// NOSAVE: Can be regenerated by inspecting the vehicles.
|
||||
VARDEF VehicleID _vehicle_position_hash[0x1000];
|
||||
|
||||
// NOSAVE: Return values from various commands.
|
||||
VARDEF VehicleID _new_train_id;
|
||||
VARDEF VehicleID _new_wagon_id;
|
||||
|
Loading…
Reference in New Issue
Block a user