summaryrefslogtreecommitdiff
path: root/src/variables.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/variables.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/variables.h')
-rw-r--r--src/variables.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/variables.h b/src/variables.h
index 7ee345be5..704e58996 100644
--- a/src/variables.h
+++ b/src/variables.h
@@ -139,6 +139,7 @@ struct Patches {
uint8 toolbar_pos; // position of toolbars, 0=left, 1=center, 2=right
uint8 window_snap_radius; // Windows snap at each other if closer than this
+ bool always_build_infrastructure; ///< Always allow building of infrastructure, even when you do not have the vehicles for it
UnitID max_trains; // max trains in game per player (these are 16bit because the unitnumber field can't hold more)
UnitID max_roadveh; // max trucks in game per player
UnitID max_aircraft; // max planes in game per player