Fix incorrect reservation when signal is removed from under train

In case where the front is in a signalled tunnel/bridge
This commit is contained in:
Jonathan G Rennison
2020-02-11 22:08:21 +00:00
parent a44e937eb0
commit e217cee5de

View File

@@ -1979,7 +1979,9 @@ CommandCost CmdRemoveSingleSignal(TileIndex tile, DoCommandFlag flags, uint32 p1
AddTrackToSignalBuffer(tile, track, GetTileOwner(tile));
YapfNotifyTrackLayoutChange(tile, track);
if (v != nullptr) TryPathReserve(v, false);
if (v != nullptr && !(v->track & TRACK_BIT_WORMHOLE && IsTunnelBridgeWithSignalSimulation(v->tile))) {
TryPathReserve(v, false);
}
MarkTileDirtyByTile(tile, ZOOM_LVL_DRAW_MAP);
}