From ef66b087845616892df69a916844accccb79777d Mon Sep 17 00:00:00 2001 From: peter1138 Date: Thu, 31 Jan 2008 21:16:40 +0000 Subject: (svn r12031) -Fix [FS#1689,FS#1719]: Prevent towns from removing or claiming ownership of player owned tiles when growing. --- src/town_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/town_cmd.cpp') 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); -- cgit v1.2.3-54-g00ecf