summaryrefslogtreecommitdiff
path: root/src/vehicle.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-01-16 21:10:41 +0000
committerrubidium <rubidium@openttd.org>2011-01-16 21:10:41 +0000
commit62128e8263f6f287720ce5e9c36c8b9378ff1aac (patch)
tree7cf23d7f89476261f503e29dffe6af3029b650f7 /src/vehicle.cpp
parent805afdb00294c8651297c0585d3637f93bc18101 (diff)
downloadopenttd-62128e8263f6f287720ce5e9c36c8b9378ff1aac.tar.xz
(svn r21826) -Fix [FS#4007]: the expectations from the "always build infrastructure" setting name/description didn't match the behaviour
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r--src/vehicle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp
index c9beba0f5..04521043c 100644
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -1468,7 +1468,7 @@ bool CanBuildVehicleInfrastructure(VehicleType type)
assert(IsCompanyBuildableVehicleType(type));
if (!Company::IsValidID(_local_company)) return false;
- if (_settings_client.gui.always_build_infrastructure) return true;
+ if (!_settings_client.gui.disable_unsuitable_building) return true;
UnitID max;
switch (type) {