changeset 2111 | 5161d1e8db4c |
parent 2085 | ae9e92ffe168 |
child 2140 | d708eb80ab8b |
--- a/rail_cmd.c Sun Jul 17 18:48:05 2005 +0000 +++ b/rail_cmd.c Sun Jul 17 18:48:45 2005 +0000 @@ -486,6 +486,10 @@ /* We remove the trackbit here. */ _m[tile].m5 &= ~trackbit; + /* Unreserve track for PBS */ + if (PBSTileReserved(tile) & trackbit) + PBSClearTrack(tile, track); + if (GetTrackBits(tile) == 0) { /* The tile has no tracks left, it is no longer a rail tile */ DoClearSquare(tile);