Changeset - r8461:0b4ecbdeaf7d
[Not reviewed]
master
0 2 0
peter1138 - 17 years ago 2008-01-31 21:16:40
peter1138@openttd.org
(svn r12031) -Fix [FS#1689,FS#1719]: Prevent towns from removing or claiming ownership of player owned tiles when growing.
2 files changed with 3 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/town_cmd.cpp
Show inline comments
 
@@ -1189,7 +1189,7 @@ static int GrowTownAtRoad(Town *t, TileI
 
			/* 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);
src/unmovable_cmd.cpp
Show inline comments
 
@@ -264,6 +264,8 @@ static CommandCost ClearTile_Unmovable(T
 
		return_cmd_error(STR_5800_OBJECT_IN_THE_WAY);
 

	
 
	if (IsStatue(tile)) {
 
		if (flags & DC_AUTO) return_cmd_error(STR_5800_OBJECT_IN_THE_WAY);
 

	
 
		TownID town = GetStatueTownID(tile);
 
		ClrBit(GetTown(town)->statues, _current_player);
 
		InvalidateWindow(WC_TOWN_AUTHORITY, town);
0 comments (0 inline, 0 general)