summaryrefslogtreecommitdiff
path: root/vehicle.c
diff options
context:
space:
mode:
Diffstat (limited to 'vehicle.c')
-rw-r--r--vehicle.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/vehicle.c b/vehicle.c
index c215c42a1..1193d2ebd 100644
--- a/vehicle.c
+++ b/vehicle.c
@@ -191,6 +191,9 @@ Vehicle *FindVehicleBetween(TileIndex from, TileIndex to, byte z)
return NULL;
}
+
+static void UpdateVehiclePosHash(Vehicle* v, int x, int y);
+
void VehiclePositionChanged(Vehicle *v)
{
int img = v->cur_image;
@@ -395,7 +398,7 @@ void *VehicleFromPos(TileIndex tile, void *data, VehicleFromPosProc *proc)
-void UpdateVehiclePosHash(Vehicle *v, int x, int y)
+static void UpdateVehiclePosHash(Vehicle* v, int x, int y)
{
VehicleID *old_hash, *new_hash;
int old_x = v->left_coord;