mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 06:15:04 +00:00
(svn r20100) -Fix: Give priority to ownership errors while removing rails.
This commit is contained in:
parent
f363f64c51
commit
5ea472650c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user