diff options
author | tron <tron@openttd.org> | 2005-11-16 11:50:40 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-11-16 11:50:40 +0000 |
commit | 62b2b4613f431d08328299bf6a6316988ccfadfa (patch) | |
tree | 592610f5e8d35c166f80bea23d25a6f4793760bd | |
parent | 784d41b6506d0709013bab187a6a2bfb0a4c5de8 (diff) | |
download | openttd-62b2b4613f431d08328299bf6a6316988ccfadfa.tar.xz |
(svn r3193) Staticise the vehicle position hash
-rw-r--r-- | vehicle.c | 2 | ||||
-rw-r--r-- | vehicle.h | 3 |
2 files changed, 2 insertions, 3 deletions
@@ -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; |