summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-07-26 08:41:14 +0000
committertron <tron@openttd.org>2006-07-26 08:41:14 +0000
commit0973dc78cd608ec086384c8bb505f478c7cd2a8e (patch)
tree0598339b5a29984fea33e7cd826ad6004d6f05de
parent16bf3e35cdad1da202ab5279c572c33cf3c786fc (diff)
downloadopenttd-0973dc78cd608ec086384c8bb505f478c7cd2a8e.tar.xz
(svn r5614) Move a type declaration to its only user
-rw-r--r--vehicle.c1
-rw-r--r--vehicle.h1
2 files changed, 1 insertions, 1 deletions
diff --git a/vehicle.c b/vehicle.c
index 4fa55907c..c2628e0d2 100644
--- a/vehicle.c
+++ b/vehicle.c
@@ -593,6 +593,7 @@ void VehicleEnteredDepotThisTick(Vehicle *v)
}
}
+typedef void VehicleTickProc(Vehicle*);
static VehicleTickProc* _vehicle_tick_procs[] = {
Train_Tick,
RoadVeh_Tick,
diff --git a/vehicle.h b/vehicle.h
index 40659bfd3..f9279fc1e 100644
--- a/vehicle.h
+++ b/vehicle.h
@@ -242,7 +242,6 @@ struct Vehicle {
#define IS_CUSTOM_FIRSTHEAD_SPRITE(x) (x == 0xFD)
#define IS_CUSTOM_SECONDHEAD_SPRITE(x) (x == 0xFE)
-typedef void VehicleTickProc(Vehicle *v);
typedef void *VehicleFromPosProc(Vehicle *v, void *data);
void VehicleServiceInDepot(Vehicle *v);