mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r2621) - Fix: [pbs] When removing tracks, clear their reserved status.
This commit is contained in:
parent
df08e10cfa
commit
edbe969d23
@ -486,6 +486,10 @@ int32 CmdRemoveSingleRail(int x, int y, uint32 flags, uint32 p1, uint32 p2)
|
|||||||
/* We remove the trackbit here. */
|
/* We remove the trackbit here. */
|
||||||
_m[tile].m5 &= ~trackbit;
|
_m[tile].m5 &= ~trackbit;
|
||||||
|
|
||||||
|
/* Unreserve track for PBS */
|
||||||
|
if (PBSTileReserved(tile) & trackbit)
|
||||||
|
PBSClearTrack(tile, track);
|
||||||
|
|
||||||
if (GetTrackBits(tile) == 0) {
|
if (GetTrackBits(tile) == 0) {
|
||||||
/* The tile has no tracks left, it is no longer a rail tile */
|
/* The tile has no tracks left, it is no longer a rail tile */
|
||||||
DoClearSquare(tile);
|
DoClearSquare(tile);
|
||||||
|
Loading…
Reference in New Issue
Block a user