File diff r19938:9607b3bf5142 → r19939:167f99380426
src/tunnelbridge_cmd.cpp
Show inline comments
 
@@ -305,9 +305,10 @@ CommandCost CmdBuildBridge(TileIndex end
 
			return_cmd_error(STR_ERROR_MUST_DEMOLISH_BRIDGE_FIRST);
 
		}
 

	
 
		/* Do not replace town bridges with lower speed bridges. */
 
		/* Do not replace town bridges with lower speed bridges, unless in scenario editor. */
 
		if (!(flags & DC_QUERY_COST) && IsTileOwner(tile_start, OWNER_TOWN) &&
 
				GetBridgeSpec(bridge_type)->speed < GetBridgeSpec(GetBridgeType(tile_start))->speed) {
 
				GetBridgeSpec(bridge_type)->speed < GetBridgeSpec(GetBridgeType(tile_start))->speed &&
 
				_game_mode != GM_EDITOR) {
 
			Town *t = ClosestTownFromTile(tile_start, UINT_MAX);
 

	
 
			if (t == NULL) {