From 62b2b4613f431d08328299bf6a6316988ccfadfa Mon Sep 17 00:00:00 2001 From: tron Date: Wed, 16 Nov 2005 11:50:40 +0000 Subject: (svn r3193) Staticise the vehicle position hash --- vehicle.c | 2 ++ vehicle.h | 3 --- 2 files changed, 2 insertions(+), 3 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; diff --git a/vehicle.h b/vehicle.h index aca334434..d79ae2cc5 100644 --- a/vehicle.h +++ b/vehicle.h @@ -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; -- cgit v1.2.3-70-g09d2