Mercurial > hg > openttd
changeset 17861:7f2e98164c7e draft
(svn r22657) -Add: [NewGRF] More default error messages for the industry shape and location callbacks.
author | michi_cc <michi_cc@openttd.org> |
---|---|
date | Mon, 11 Jul 2011 16:32:25 +0000 |
parents | 89ea8ed98e38 |
children | ec8e61ea1b41 |
files | src/lang/english.txt src/newgrf_commons.cpp |
diffstat | 2 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lang/english.txt +++ b/src/lang/english.txt @@ -3524,6 +3524,8 @@ 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_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...
--- a/src/newgrf_commons.cpp +++ b/src/newgrf_commons.cpp @@ -464,6 +464,11 @@ 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; }