summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2012-03-17 19:48:26 +0000
committerfrosch <frosch@openttd.org>2012-03-17 19:48:26 +0000
commita1f2ad880dc3fb49e1184be52ecea5522edea7ae (patch)
tree7dea5db1e125e4be94e4cd0aca5205d3676e2008
parent1a11a99a24913373c8480be113ea019442b25a72 (diff)
downloadopenttd-a1f2ad880dc3fb49e1184be52ecea5522edea7ae.tar.xz
(svn r24040) -Fix [FS#5095]: Improve error messages wrt. the placement restrictions of banks, water towers and toy shops.
-rw-r--r--src/industry_cmd.cpp2
-rw-r--r--src/lang/english.txt3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp
index 8a3effbd2..891798424 100644
--- a/src/industry_cmd.cpp
+++ b/src/industry_cmd.cpp
@@ -1455,7 +1455,7 @@ static CommandCost CheckIfIndustryIsAllowed(TileIndex tile, int type, const Town
}
if ((GetIndustrySpec(type)->behaviour & INDUSTRYBEH_ONLY_NEARTOWN) && DistanceMax(t->xy, tile) > 9) {
- return_cmd_error(STR_ERROR_SITE_UNSUITABLE);
+ return_cmd_error(STR_ERROR_CAN_ONLY_BE_BUILT_NEAR_TOWN_CENTER);
}
return CommandCost();
diff --git a/src/lang/english.txt b/src/lang/english.txt
index d0bae408d..7e8acd3c9 100644
--- a/src/lang/english.txt
+++ b/src/lang/english.txt
@@ -3717,7 +3717,8 @@ STR_ERROR_ONLY_ONE_ALLOWED_PER_TOWN :{WHITE}... only
STR_ERROR_CAN_ONLY_BE_BUILT_IN_TOWNS_WITH_POPULATION_OF_1200 :{WHITE}... can only be built in towns with a population of at least 1200
STR_ERROR_CAN_ONLY_BE_BUILT_IN_RAINFOREST :{WHITE}... can only be built in rainforest areas
STR_ERROR_CAN_ONLY_BE_BUILT_IN_DESERT :{WHITE}... can only be built in desert areas
-STR_ERROR_CAN_ONLY_BE_BUILT_IN_TOWNS :{WHITE}... can only be built in towns
+STR_ERROR_CAN_ONLY_BE_BUILT_IN_TOWNS :{WHITE}... can only be built in towns (replacing houses)
+STR_ERROR_CAN_ONLY_BE_BUILT_NEAR_TOWN_CENTER :{WHITE}... can only be built near the center of 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