Changeset - r6751:a298378e2d72
[Not reviewed]
master
0 1 0
rubidium - 17 years ago 2007-05-30 13:16:45
rubidium@openttd.org
(svn r9986) -Fix (r9934): flooding towns could not remove tram tracks (boekabart).
1 file changed with 5 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/road_cmd.cpp
Show inline comments
 
@@ -51,8 +51,11 @@ bool CheckAllowRemoveRoad(TileIndex tile
 

	
 
	if (_game_mode == GM_EDITOR || remove == ROAD_NONE) return true;
 

	
 
	/* Only do the special processing for actual players. */
 
	if (rt == ROADTYPE_ROAD && !IsValidPlayer(_current_player)) return true;
 
	/* Water can always flood and towns can always remove "normal" road pieces.
 
	 * Towns are not be allowed to remove non "normal" road pieces, like tram
 
	 * tracks as that would result in trams that cannot turn. */
 
	if (_current_player == OWNER_WATER ||
 
			(rt == ROADTYPE_ROAD && !IsValidPlayer(_current_player))) return true;
 

	
 
	/* Only do the special processing if the road is owned
 
	 * by a town */
0 comments (0 inline, 0 general)