From bf0e7c34e6b2031135eccd9f8a68f4f2157bccbb Mon Sep 17 00:00:00 2001 From: frosch Date: Sun, 8 Dec 2013 15:44:09 +0000 Subject: (svn r26149) -Fix [FS#5825]: [Script] Various API functions did not check whether ScrtipRoad::SetCurrentRoadType was called appropiately. --- src/script/api/script_road.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/script/api/script_road.hpp') diff --git a/src/script/api/script_road.hpp b/src/script/api/script_road.hpp index 36290e2cc..ed4058f97 100644 --- a/src/script/api/script_road.hpp +++ b/src/script/api/script_road.hpp @@ -93,6 +93,7 @@ public: * Checks whether the given tile is actually a tile with a road depot. * @param tile The tile to check. * @pre ScriptMap::IsValidTile(tile). + * @pre IsRoadTypeAvailable(GetCurrentRoadType()). * @return True if and only if the tile has a road depot. */ static bool IsRoadDepotTile(TileIndex tile); @@ -101,6 +102,7 @@ public: * Checks whether the given tile is actually a tile with a road station. * @param tile The tile to check. * @pre ScriptMap::IsValidTile(tile). + * @pre IsRoadTypeAvailable(GetCurrentRoadType()). * @return True if and only if the tile has a road station. */ static bool IsRoadStationTile(TileIndex tile); @@ -110,6 +112,7 @@ public: * road station. * @param tile The tile to check. * @pre ScriptMap::IsValidTile(tile). + * @pre IsRoadTypeAvailable(GetCurrentRoadType()). * @return True if and only if the tile has a drive through road station. */ static bool IsDriveThroughRoadStationTile(TileIndex tile); -- cgit v1.2.3-54-g00ecf