diff -r fb5858cb0077 -r 5161d1e8db4c rail_cmd.c --- 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);