summaryrefslogtreecommitdiff
path: root/src/script/api/ai
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2013-07-15 18:19:26 +0000
committerrubidium <rubidium@openttd.org>2013-07-15 18:19:26 +0000
commitde90a1ffb3784699240a64a0a5be3dc7bb2d8a00 (patch)
treeb0504956d1c7af8847fa7b912ec5efaa0a35d444 /src/script/api/ai
parent72fb5092866ac2bb521fa0c9757e61d2da0d85ef (diff)
downloadopenttd-de90a1ffb3784699240a64a0a5be3dc7bb2d8a00.tar.xz
(svn r25614) -Fix [FS#5651]: [Script] Give a slightly less generic error when removing inexisting rail
-Fix [FS#5650]: [Script] Be more specific that a non-NewGRF station can be built when asking for a NewGRF station
Diffstat (limited to 'src/script/api/ai')
-rw-r--r--src/script/api/ai/ai_rail.hpp.sq3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/script/api/ai/ai_rail.hpp.sq b/src/script/api/ai/ai_rail.hpp.sq
index 8ec22e338..ba9d7e656 100644
--- a/src/script/api/ai/ai_rail.hpp.sq
+++ b/src/script/api/ai/ai_rail.hpp.sq
@@ -53,6 +53,9 @@ void SQAIRail_Register(Squirrel *engine)
ScriptError::RegisterErrorMap(STR_ERROR_CROSSING_ON_ONEWAY_ROAD, ScriptRail::ERR_CROSSING_ON_ONEWAY_ROAD);
ScriptError::RegisterErrorMap(STR_ERROR_NO_SUITABLE_RAILROAD_TRACK, ScriptRail::ERR_UNSUITABLE_TRACK);
+ ScriptError::RegisterErrorMap(STR_ERROR_THERE_IS_NO_RAILROAD_TRACK, ScriptRail::ERR_UNSUITABLE_TRACK);
+ ScriptError::RegisterErrorMap(STR_ERROR_THERE_ARE_NO_SIGNALS, ScriptRail::ERR_UNSUITABLE_TRACK);
+ ScriptError::RegisterErrorMap(STR_ERROR_THERE_IS_NO_STATION, ScriptRail::ERR_UNSUITABLE_TRACK);
ScriptError::RegisterErrorMap(STR_ERROR_CROSSING_DISALLOWED, ScriptRail::ERR_RAILTYPE_DISALLOWS_CROSSING);
ScriptError::RegisterErrorMapString(ScriptRail::ERR_CROSSING_ON_ONEWAY_ROAD, "ERR_CROSSING_ON_ONEWAY_ROAD");