mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 14:27:16 +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;
|
if (HasBit(p2, 8)) return last_error;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Ownership errors are more important. */
|
||||||
|
if (last_error.GetErrorMessage() == STR_ERROR_OWNED_BY && remove) break;
|
||||||
} else {
|
} else {
|
||||||
had_success = true;
|
had_success = true;
|
||||||
total_cost.AddCost(ret);
|
total_cost.AddCost(ret);
|
||||||
|
Loading…
Reference in New Issue
Block a user