Changeset - r19901:55f25e66a6a2
[Not reviewed]
master
0 1 0
frosch - 11 years ago 2012-12-26 13:01:28
frosch@openttd.org
(svn r24857) -Fix: Don't let UFOs and coal mines clear water.
1 file changed with 3 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/rail_cmd.cpp
Show inline comments
 
@@ -1791,8 +1791,9 @@ static CommandCost ClearTile_Track(TileI
 
				cost.AddCost(ret);
 
			}
 

	
 
			/* when bankrupting, don't make water dirty, there could be a ship on lower halftile */
 
			if (water_ground && !(flags & DC_BANKRUPT)) {
 
			/* When bankrupting, don't make water dirty, there could be a ship on lower halftile.
 
			 * Same holds for non-companies clearing the tile, e.g. disasters. */
 
			if (water_ground && !(flags & DC_BANKRUPT) && Company::IsValidID(_current_company)) {
 
				CommandCost ret = EnsureNoVehicleOnGround(tile);
 
				if (ret.Failed()) return ret;
 

	
0 comments (0 inline, 0 general)