Mercurial > hg > openttd
changeset 9504:ee2e42e74f23 draft
(svn r13488) -Fix (r13485): track wasn't removed on company bankrupcy when there was a ship on lower halftile
author | smatz <smatz@openttd.org> |
---|---|
date | Thu, 12 Jun 2008 13:40:07 +0000 |
parents | b45f1056d60b |
children | 4a9a94edf11a |
files | src/rail_cmd.cpp |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/rail_cmd.cpp +++ b/src/rail_cmd.cpp @@ -1382,7 +1382,8 @@ cost.AddCost(ret); } - if (water_ground) { + /* when bankrupting, don't make water dirty, there could be a ship on lower halftile */ + if (water_ground && !(flags & DC_BANKRUPT)) { if (!EnsureNoVehicleOnGround(tile)) return CMD_ERROR; /* The track was removed, and left a coast tile. Now also clear the water. */