summaryrefslogtreecommitdiff
path: root/src/newgrf_commons.cpp
diff options
context:
space:
mode:
authormichi_cc <michi_cc@openttd.org>2011-07-11 16:32:25 +0000
committermichi_cc <michi_cc@openttd.org>2011-07-11 16:32:25 +0000
commit624aec0b19ce6028ce595fd74b6872c731d0b06a (patch)
tree4263209f60501234843605a9d83ae5225ddf7bbb /src/newgrf_commons.cpp
parent206ff68e65b1a679e96f5064e3595a183327ef6b (diff)
downloadopenttd-624aec0b19ce6028ce595fd74b6872c731d0b06a.tar.xz
(svn r22657) -Add: [NewGRF] More default error messages for the industry shape and location callbacks.
Diffstat (limited to 'src/newgrf_commons.cpp')
-rw-r--r--src/newgrf_commons.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/newgrf_commons.cpp b/src/newgrf_commons.cpp
index 0c6cef3eb..8b01c1268 100644
--- a/src/newgrf_commons.cpp
+++ b/src/newgrf_commons.cpp
@@ -464,6 +464,11 @@ CommandCost GetErrorMessageFromLocationCallbackResult(uint16 cb_res, uint32 grfi
case 0x401: res = CommandCost(default_error); break;
case 0x402: res = CommandCost(STR_ERROR_CAN_ONLY_BE_BUILT_IN_RAINFOREST); break;
case 0x403: res = CommandCost(STR_ERROR_CAN_ONLY_BE_BUILT_IN_DESERT); break;
+ case 0x404: res = CommandCost(STR_ERROR_CAN_ONLY_BE_BUILT_ABOVE_SNOW_LINE); break;
+ case 0x405: res = CommandCost(STR_ERROR_CAN_ONLY_BE_BUILT_BELOW_SNOW_LINE); break;
+ case 0x406: res = CommandCost(STR_ERROR_CAN_T_BUILD_ON_SEA); break;
+ case 0x407: res = CommandCost(STR_ERROR_CAN_T_BUILD_ON_CANAL); break;
+ case 0x408: res = CommandCost(STR_ERROR_CAN_T_BUILD_ON_RIVER); break;
default: res = CommandCost(GetGRFStringID(grfid, 0xD000 + cb_res)); break;
}