mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r20099) -Fix [FS#3882]: Give priority to ownership errors while removing roads.
This commit is contained in:
parent
811f0db597
commit
f363f64c51
|
@ -861,6 +861,9 @@ CommandCost CmdRemoveLongRoad(TileIndex start_tile, DoCommandFlag flags, uint32
|
||||||
had_success = true;
|
had_success = true;
|
||||||
} else {
|
} else {
|
||||||
last_error = ret;
|
last_error = ret;
|
||||||
|
|
||||||
|
/* Ownership errors are more important. */
|
||||||
|
if (last_error.GetErrorMessage() == STR_ERROR_OWNED_BY) break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue