summaryrefslogtreecommitdiff
path: root/src/script/api/script_tunnel.hpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2013-12-08 15:44:09 +0000
committerfrosch <frosch@openttd.org>2013-12-08 15:44:09 +0000
commitbf0e7c34e6b2031135eccd9f8a68f4f2157bccbb (patch)
treeda340edf5f2eb6fcfdaed27ae000fd6f03a8e4a9 /src/script/api/script_tunnel.hpp
parent2e79fd9c4015a1777f52431b524f02aa1ce82a15 (diff)
downloadopenttd-bf0e7c34e6b2031135eccd9f8a68f4f2157bccbb.tar.xz
(svn r26149) -Fix [FS#5825]: [Script] Various API functions did not check whether ScrtipRoad::SetCurrentRoadType was called appropiately.
Diffstat (limited to 'src/script/api/script_tunnel.hpp')
-rw-r--r--src/script/api/script_tunnel.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/script/api/script_tunnel.hpp b/src/script/api/script_tunnel.hpp
index 9911361f7..74fdaabc5 100644
--- a/src/script/api/script_tunnel.hpp
+++ b/src/script/api/script_tunnel.hpp
@@ -85,8 +85,8 @@ public:
* @param start Where to start the tunnel.
* @param vehicle_type The vehicle-type of tunnel to build.
* @pre ScriptMap::IsValidTile(start).
- * @pre vehicle_type == ScriptVehicle::VT_ROAD || (vehicle_type == ScriptVehicle::VT_RAIL &&
- * ScriptRail::IsRailTypeAvailable(ScriptRail::GetCurrentRailType())).
+ * @pre (vehicle_type == ScriptVehicle::VT_ROAD && ScriptRoad::IsRoadTypeAvailable(ScriptRoad::GetCurrentRoadType())) ||
+ * (vehicle_type == ScriptVehicle::VT_RAIL && ScriptRail::IsRailTypeAvailable(ScriptRail::GetCurrentRailType())).
* @game @pre Outside CompanyMode: vehicle_type == ScriptVehicle::VT_ROAD.
* @exception ScriptError::ERR_AREA_NOT_CLEAR
* @exception ScriptTunnel::ERR_TUNNEL_CANNOT_BUILD_ON_WATER