Cleanup: STR_ERROR_TOO_CLOSE_TO_EDGE_OF_MAP_SUB is not needed.

This commit is contained in:
Rito12
2026-02-23 17:14:56 +01:00
committed by rubidium42
parent 7f66f87af4
commit f7e20ecb4e
3 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -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) {