summaryrefslogtreecommitdiff
path: root/src/vehicle.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-06-27 14:15:48 +0000
committerrubidium <rubidium@openttd.org>2007-06-27 14:15:48 +0000
commit52fbdd62a2efcd0b22452095eb6efbd6930e13a8 (patch)
treeeaa49e95c6bd9507f25d0920157782b69f1e373f /src/vehicle.h
parenta775cdc03ae315a8952ed21fcfd4c2eab4082e1f (diff)
downloadopenttd-52fbdd62a2efcd0b22452095eb6efbd6930e13a8.tar.xz
(svn r10353) -Fix/Feature [FS#669]: disallow (in the GUI) the building of infrastructure you do not have available vehicles for. This means that the airport building button is disabled till you can actually build aircraft. The game itself will not disallow you to build the infrastructure and this "new" behaviour can be overriden with a patch setting.
Diffstat (limited to 'src/vehicle.h')
-rw-r--r--src/vehicle.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vehicle.h b/src/vehicle.h
index 7b2b5cebc..c51b49f05 100644
--- a/src/vehicle.h
+++ b/src/vehicle.h
@@ -77,6 +77,7 @@ enum VehicleType {
VEH_END,
VEH_INVALID = 0xFF,
};
+DECLARE_POSTFIX_INCREMENT(VehicleType);
template <> struct EnumPropsT<VehicleType> : MakeEnumPropsT<VehicleType, byte, VEH_TRAIN, VEH_END, VEH_INVALID> {};
typedef TinyEnumT<VehicleType> VehicleTypeByte;
@@ -569,6 +570,7 @@ void VehicleEnterDepot(Vehicle *v);
void InvalidateAutoreplaceWindow(EngineID e);
CommandCost MaybeReplaceVehicle(Vehicle *v, bool check, bool display_costs);
+bool CanBuildVehicleInfrastructure(VehicleType type);
/* Flags to add to p2 for goto depot commands */
/* Note: bits 8-10 are used for VLW flags */