Mercurial > hg > openttd
changeset 19923:4a8cbdf2bb7e draft
(svn r24857) -Fix: Don't let UFOs and coal mines clear water.
author | frosch <frosch@openttd.org> |
---|---|
date | Wed, 26 Dec 2012 13:01:28 +0000 |
parents | 0dab37af8b7e |
children | 68dfc16ddcfa |
files | src/rail_cmd.cpp |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/rail_cmd.cpp +++ b/src/rail_cmd.cpp @@ -1791,8 +1791,9 @@ 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;