diff options
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; } |