summaryrefslogtreecommitdiff
path: root/vehicle.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-11-16 11:50:40 +0000
committertron <tron@openttd.org>2005-11-16 11:50:40 +0000
commitc87511026ac04528317045155d5842cd76a66fb6 (patch)
tree592610f5e8d35c166f80bea23d25a6f4793760bd /vehicle.c
parent1d9e838a2bd90af42e5759619b7040ef2f9700ab (diff)
downloadopenttd-c87511026ac04528317045155d5842cd76a66fb6.tar.xz
(svn r3193) Staticise the vehicle position hash
Diffstat (limited to 'vehicle.c')
-rw-r--r--vehicle.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vehicle.c b/vehicle.c
index 975f23259..8c386b09c 100644
--- a/vehicle.c
+++ b/vehicle.c
@@ -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;