mirror of https://github.com/OpenTTD/OpenTTD
(svn r3193) Staticise the vehicle position hash
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)
|
void *VehicleFromPos(TileIndex tile, void *data, VehicleFromPosProc *proc)
|
||||||
{
|
{
|
||||||
int x,y,x2,y2;
|
int x,y,x2,y2;
|
||||||
|
|
|
@ -492,9 +492,6 @@ static inline Vehicle *GetFirstVehicleFromSharedList(Vehicle *v)
|
||||||
return u;
|
return u;
|
||||||
}
|
}
|
||||||
|
|
||||||
// NOSAVE: Can be regenerated by inspecting the vehicles.
|
|
||||||
VARDEF VehicleID _vehicle_position_hash[0x1000];
|
|
||||||
|
|
||||||
// NOSAVE: Return values from various commands.
|
// NOSAVE: Return values from various commands.
|
||||||
VARDEF VehicleID _new_train_id;
|
VARDEF VehicleID _new_train_id;
|
||||||
VARDEF VehicleID _new_wagon_id;
|
VARDEF VehicleID _new_wagon_id;
|
||||||
|
|
Loading…
Reference in New Issue