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
commit1cff4725010b20d39cbf5781dd3251112a004e8c (patch)
treeeaa49e95c6bd9507f25d0920157782b69f1e373f /src/variables.h
parentf603383eb9a11b6b951910933fcab305c6c1fe68 (diff)
downloadopenttd-1cff4725010b20d39cbf5781dd3251112a004e8c.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