Use order state at reservation time for signal mode tracerestrict eval

This commit is contained in:
Jonathan G Rennison
2022-07-01 00:19:50 +01:00
parent 12566f05ca
commit bd28d5a239
8 changed files with 62 additions and 23 deletions

View File

@@ -127,7 +127,7 @@ private:
m_res_fail_td = td;
}
} else {
if (!TryReserveRailTrackdir(tile, td)) {
if (!TryReserveRailTrackdir(Yapf().GetVehicle(), tile, td)) {
/* Tile couldn't be reserved, undo. */
m_res_fail_tile = tile;
m_res_fail_td = td;