diff options
author | zuu <zuu@openttd.org> | 2012-10-25 19:25:31 +0000 |
---|---|---|
committer | zuu <zuu@openttd.org> | 2012-10-25 19:25:31 +0000 |
commit | 1f764f51f0a146ee797dd21bda65507d361c79da (patch) | |
tree | a3b8dee2078228fae8ed8e81599e90b428b8e986 /src/script/api/script_road.hpp | |
parent | 355790435e9c6b0d9ea6214d4ccb4ff2fb58b322 (diff) | |
download | openttd-1f764f51f0a146ee797dd21bda65507d361c79da.tar.xz |
(svn r24628) -Fix: Document and enforce precondition start != end for ScriptRoad::RemoveRoad and ScriptRoad::RemoveRoadFull
Diffstat (limited to 'src/script/api/script_road.hpp')
-rw-r--r-- | src/script/api/script_road.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/script/api/script_road.hpp b/src/script/api/script_road.hpp index 9818fa55c..6f928e25c 100644 --- a/src/script/api/script_road.hpp +++ b/src/script/api/script_road.hpp @@ -418,6 +418,7 @@ public: * Removes a road from the center of tile start to the center of tile end. * @param start The start tile of the road. * @param end The end tile of the road. + * @pre 'start' is not equal to 'end'. * @pre ScriptMap::IsValidTile(start). * @pre ScriptMap::IsValidTile(end). * @pre 'start' and 'end' are in a straight line, i.e. @@ -437,6 +438,7 @@ public: * included). * @param start The start tile of the road. * @param end The end tile of the road. + * @pre 'start' is not equal to 'end'. * @pre ScriptMap::IsValidTile(start). * @pre ScriptMap::IsValidTile(end). * @pre 'start' and 'end' are in a straight line, i.e. |