rail_cmd.c
changeset 2111 5161d1e8db4c
parent 2085 ae9e92ffe168
child 2140 d708eb80ab8b
equal deleted inserted replaced
2110:fb5858cb0077 2111:5161d1e8db4c
   483 			if (!(flags & DC_EXEC))
   483 			if (!(flags & DC_EXEC))
   484 				return cost;
   484 				return cost;
   485 
   485 
   486 			/* We remove the trackbit here. */
   486 			/* We remove the trackbit here. */
   487 			_m[tile].m5 &= ~trackbit;
   487 			_m[tile].m5 &= ~trackbit;
       
   488 
       
   489 			/* Unreserve track for PBS */
       
   490 			if (PBSTileReserved(tile) & trackbit)
       
   491 				PBSClearTrack(tile, track);
   488 
   492 
   489 			if (GetTrackBits(tile)  == 0) {
   493 			if (GetTrackBits(tile)  == 0) {
   490 				/* The tile has no tracks left, it is no longer a rail tile */
   494 				/* The tile has no tracks left, it is no longer a rail tile */
   491 				DoClearSquare(tile);
   495 				DoClearSquare(tile);
   492 				/* XXX: This is an optimisation, right? Is it really worth the ugly goto? */
   496 				/* XXX: This is an optimisation, right? Is it really worth the ugly goto? */