summaryrefslogtreecommitdiff
path: root/vehicle.h
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-10-18 07:01:00 +0000
committertron <tron@openttd.org>2005-10-18 07:01:00 +0000
commitd4752ba0da4c6387020167b3acee938ed14d9a66 (patch)
treea9e1c8d1f0c24a73580b5124a2e50ab1823ab161 /vehicle.h
parentd4463b4b950163ebe6cb8db989967ce65ad75da5 (diff)
downloadopenttd-d4752ba0da4c6387020167b3acee938ed14d9a66.tar.xz
(svn r3058) The default AI may not build dual headed trains under certain circumstances.
Simplify this check by testing the rail vehicle info flags instead of passing a global variable around. Note: This is not exactly the original behaviour, because the Lev4 was always allowed to be built, but i guess that was a glitch.
Diffstat (limited to 'vehicle.h')
-rw-r--r--vehicle.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/vehicle.h b/vehicle.h
index c61a672f0..443e0773b 100644
--- a/vehicle.h
+++ b/vehicle.h
@@ -447,7 +447,6 @@ VARDEF VehicleID _new_ship_id;
VARDEF VehicleID _new_roadveh_id;
VARDEF uint16 _aircraft_refit_capacity;
VARDEF byte _cmd_build_rail_veh_score;
-VARDEF byte _cmd_build_rail_veh_var1;
// for each player, for each vehicle type, keep a list of the vehicles.
//VARDEF Vehicle *_vehicle_arr[8][4];