summaryrefslogtreecommitdiff
path: root/vehicle.h
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2005-10-29 21:54:28 +0000
committerbjarni <bjarni@openttd.org>2005-10-29 21:54:28 +0000
commit6d41c23cf2f485728a64470fe49a10c155e250cd (patch)
treeb3245017ad292e3af887c100aad93208b3a2f430 /vehicle.h
parent76f4c5b6f9fac784e0330384bddae94a25777eac (diff)
downloadopenttd-6d41c23cf2f485728a64470fe49a10c155e250cd.tar.xz
(svn r3101) -Codechange: added _new_vehicle_id
this var works like _new_train_id and the rest of that kind of vars, except it is set each time a vehicle is build, nomatter what type this is a nice tool to code vehicle independent code, which in turn can reduce code duplication Right now it's used in ReplaceVehicle() and CmdCloneVehicle()
Diffstat (limited to 'vehicle.h')
-rw-r--r--vehicle.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/vehicle.h b/vehicle.h
index 6e176f82b..ef0646b5f 100644
--- a/vehicle.h
+++ b/vehicle.h
@@ -442,6 +442,7 @@ VARDEF VehicleID _new_wagon_id;
VARDEF VehicleID _new_aircraft_id;
VARDEF VehicleID _new_ship_id;
VARDEF VehicleID _new_roadveh_id;
+VARDEF VehicleID _new_vehicle_id;
VARDEF uint16 _aircraft_refit_capacity;
VARDEF byte _cmd_build_rail_veh_score;