mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-08 01:10:28 +00:00
(svn r20215) -Fix [FS#3971]: Remove all road pieces rather than aborting at the first ownership error (Krille).
This commit is contained in:
parent
817d4cf805
commit
b97aba9da7
@ -860,10 +860,8 @@ CommandCost CmdRemoveLongRoad(TileIndex start_tile, DoCommandFlag flags, uint32
|
||||
cost.AddCost(ret);
|
||||
had_success = true;
|
||||
} else {
|
||||
last_error = ret;
|
||||
|
||||
/* Ownership errors are more important. */
|
||||
if (last_error.GetErrorMessage() == STR_ERROR_OWNED_BY) break;
|
||||
if (last_error.GetErrorMessage() != STR_ERROR_OWNED_BY) last_error = ret;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user