diff options
author | michi_cc <michi_cc@openttd.org> | 2011-07-11 16:32:25 +0000 |
---|---|---|
committer | michi_cc <michi_cc@openttd.org> | 2011-07-11 16:32:25 +0000 |
commit | 624aec0b19ce6028ce595fd74b6872c731d0b06a (patch) | |
tree | 4263209f60501234843605a9d83ae5225ddf7bbb /src | |
parent | 206ff68e65b1a679e96f5064e3595a183327ef6b (diff) | |
download | openttd-624aec0b19ce6028ce595fd74b6872c731d0b06a.tar.xz |
(svn r22657) -Add: [NewGRF] More default error messages for the industry shape and location callbacks.
Diffstat (limited to 'src')
-rw-r--r-- | src/lang/english.txt | 5 | ||||
-rw-r--r-- | src/newgrf_commons.cpp | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/lang/english.txt b/src/lang/english.txt index ef4dadd43..71f7811c8 100644 --- a/src/lang/english.txt +++ b/src/lang/english.txt @@ -3524,6 +3524,8 @@ STR_ERROR_CAN_ONLY_BE_BUILT_IN_TOWNS :{WHITE}... can STR_ERROR_CAN_ONLY_BE_BUILT_IN_LOW_AREAS :{WHITE}... can only be built in low areas STR_ERROR_CAN_ONLY_BE_POSITIONED :{WHITE}... can only be positioned near edges of map STR_ERROR_FOREST_CAN_ONLY_BE_PLANTED :{WHITE}... forest can only be planted above snow-line +STR_ERROR_CAN_ONLY_BE_BUILT_ABOVE_SNOW_LINE :{WHITE}... can only be built above the snow-line +STR_ERROR_CAN_ONLY_BE_BUILT_BELOW_SNOW_LINE :{WHITE}... can only be built below the snow-line # Station construction related errors STR_ERROR_CAN_T_BUILD_RAILROAD_STATION :{WHITE}Can't build railway station here... @@ -3645,6 +3647,9 @@ STR_ERROR_CAN_T_BUILD_LOCKS :{WHITE}Can't bu STR_ERROR_CAN_T_PLACE_RIVERS :{WHITE}Can't place rivers here... STR_ERROR_MUST_BE_BUILT_ON_WATER :{WHITE}... must be built on water STR_ERROR_CAN_T_BUILD_ON_WATER :{WHITE}... can't build on water +STR_ERROR_CAN_T_BUILD_ON_SEA :{WHITE}... can't build on open sea +STR_ERROR_CAN_T_BUILD_ON_CANAL :{WHITE}... can't build on canal +STR_ERROR_CAN_T_BUILD_ON_RIVER :{WHITE}... can't build on river STR_ERROR_MUST_DEMOLISH_CANAL_FIRST :{WHITE}Must demolish canal first STR_ERROR_CAN_T_BUILD_AQUEDUCT_HERE :{WHITE}Can't build aqueduct here... 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; } |