diff options
author | Peter Nelson <peter1138@openttd.org> | 2021-04-10 18:29:21 +0100 |
---|---|---|
committer | Niels Martin Hansen <nielsm@indvikleren.dk> | 2021-04-11 00:11:41 +0200 |
commit | f9460c0c8b4f9f994aadc396579590d26fbac32b (patch) | |
tree | ba9e5a0a2deddd5a57bdca8f7163abe13aba1c4b /src | |
parent | 59b6e46bcee466532e7dae3a272079ecdafa0ae1 (diff) | |
download | openttd-f9460c0c8b4f9f994aadc396579590d26fbac32b.tar.xz |
Fix #8981: Don't attempt to re-reserve path if already entering/entered depot.
Diffstat (limited to 'src')
-rw-r--r-- | src/rail_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rail_cmd.cpp b/src/rail_cmd.cpp index a5e985c02..888b98e94 100644 --- a/src/rail_cmd.cpp +++ b/src/rail_cmd.cpp @@ -1197,7 +1197,7 @@ CommandCost CmdBuildSingleSignal(TileIndex tile, DoCommandFlag flags, uint32 p1, MarkTileDirtyByTile(tile); AddTrackToSignalBuffer(tile, track, _current_company); YapfNotifyTrackLayoutChange(tile, track); - if (v != nullptr) { + if (v != nullptr && v->track != TRACK_BIT_DEPOT) { /* Extend the train's path if it's not stopped or loading, or not at a safe position. */ if (!(((v->vehstatus & VS_STOPPED) && v->cur_speed == 0) || v->current_order.IsType(OT_LOADING)) || !IsSafeWaitingPosition(v, v->tile, v->GetVehicleTrackdir(), true, _settings_game.pf.forbid_90_deg)) { |