diff --git a/src/lang/english.txt b/src/lang/english.txt index 1e974f5ed6..74152e63cd 100644 --- a/src/lang/english.txt +++ b/src/lang/english.txt @@ -5141,7 +5141,6 @@ STR_ERROR_CAN_T_GENERATE_TOWN :Can't build any STR_ERROR_CAN_T_RENAME_TOWN :Can't rename town... STR_ERROR_CAN_T_FOUND_TOWN_HERE :Can't found town here... STR_ERROR_CAN_T_EXPAND_TOWN :Can't expand town... -STR_ERROR_TOO_CLOSE_TO_EDGE_OF_MAP_SUB :too close to edge of map STR_ERROR_TOO_CLOSE_TO_ANOTHER_TOWN :too close to another town STR_ERROR_TOO_MANY_TOWNS :too many towns STR_ERROR_NO_SPACE_FOR_TOWN :there is no more space on the map diff --git a/src/object_cmd.cpp b/src/object_cmd.cpp index 6d30b37c95..5e9e036038 100644 --- a/src/object_cmd.cpp +++ b/src/object_cmd.cpp @@ -227,7 +227,7 @@ CommandCost CmdBuildObject(DoCommandFlags flags, TileIndex tile, ObjectType type int size_y = GB(spec->size, HasBit(view, 0) ? 0 : 4, 4); TileArea ta(tile, size_x, size_y); for (TileIndex t : ta) { - if (!IsValidTile(t)) return CommandCost(STR_ERROR_TOO_CLOSE_TO_EDGE_OF_MAP_SUB); // Might be off the map + if (!IsValidTile(t)) return CommandCost(STR_ERROR_TOO_CLOSE_TO_EDGE_OF_MAP); // Might be off the map } if (type == OBJECT_OWNED_LAND) { diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp index b5a2717b7c..943eef0dc2 100644 --- a/src/town_cmd.cpp +++ b/src/town_cmd.cpp @@ -2098,7 +2098,7 @@ static CommandCost TownCanBePlacedHere(TileIndex tile, bool check_surrounding) { /* Check if too close to the edge of map */ if (DistanceFromEdge(tile) < 12) { - return CommandCost(STR_ERROR_TOO_CLOSE_TO_EDGE_OF_MAP_SUB); + return CommandCost(STR_ERROR_TOO_CLOSE_TO_EDGE_OF_MAP); } /* Check distance to all other towns. */