Changeset - r17851:e4dd2c56ad00
[Not reviewed]
master
0 2 0
michi_cc - 13 years ago 2011-07-11 16:32:25
michi_cc@openttd.org
(svn r22657) -Add: [NewGRF] More default error messages for the industry shape and location callbacks.
2 files changed with 10 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/lang/english.txt
Show inline comments
 
@@ -3524,6 +3524,8 @@ STR_ERROR_CAN_ONLY_BE_BUILT_IN_TOWNS    
 
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             
 
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...
 

	
src/newgrf_commons.cpp
Show inline comments
 
@@ -464,6 +464,11 @@ CommandCost GetErrorMessageFromLocationC
 
		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;
 
	}
 

	
0 comments (0 inline, 0 general)