(svn r20100) -Fix: Give priority to ownership errors while removing rails.

This commit is contained in:
terkhen 2010-07-09 16:43:00 +00:00
parent f363f64c51
commit 5ea472650c

View File

@ -770,6 +770,9 @@ static CommandCost CmdRailTrackHelper(TileIndex tile, DoCommandFlag flags, uint3
if (HasBit(p2, 8)) return last_error;
break;
}
/* Ownership errors are more important. */
if (last_error.GetErrorMessage() == STR_ERROR_OWNED_BY && remove) break;
} else {
had_success = true;
total_cost.AddCost(ret);