summaryrefslogtreecommitdiff
path: root/src/town_cmd.cpp
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2008-01-31 21:16:40 +0000
committerpeter1138 <peter1138@openttd.org>2008-01-31 21:16:40 +0000
commitbe548ee224ed1aa33cda53defa620ee0ca472f36 (patch)
treeea9f8f7148df082942fd6a5fe3b3c51acf311d4f /src/town_cmd.cpp
parentf3ecaf796e794a7cb87f0b43e298813b31ec83db (diff)
downloadopenttd-be548ee224ed1aa33cda53defa620ee0ca472f36.tar.xz
(svn r12031) -Fix [FS#1689,FS#1719]: Prevent towns from removing or claiming ownership of player owned tiles when growing.
Diffstat (limited to 'src/town_cmd.cpp')
-rw-r--r--src/town_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp
index f57916ea1..23606bb3f 100644
--- a/src/town_cmd.cpp
+++ b/src/town_cmd.cpp
@@ -1189,7 +1189,7 @@ static int GrowTownAtRoad(Town *t, TileIndex tile)
/* Don't allow building over roads of other cities */
if (IsTileOwner(tile, OWNER_TOWN) && GetTownByTile(tile) != t) {
_grow_town_result = GROWTH_SUCCEED;
- } else if (_game_mode == GM_EDITOR) {
+ } else if (IsTileOwner(tile, OWNER_NONE) && _game_mode == GM_EDITOR) {
/* If we are in the SE, and this road-piece has no town owner yet, it just found an
* owner :) (happy happy happy road now) */
SetTileOwner(tile, OWNER_TOWN);