From 9295bd3f7cbc807b6c7890e4beae998459bbed06 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 2 Aug 2008 22:48:14 +0000 Subject: (svn r13930) -Codechange [YAPP]: Clear track reservation when removing a rail track. (michi_cc) --- src/rail_cmd.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rail_cmd.cpp b/src/rail_cmd.cpp index 7e231ff80..a85626837 100644 --- a/src/rail_cmd.cpp +++ b/src/rail_cmd.cpp @@ -504,6 +504,7 @@ CommandCost CmdRemoveSingleRail(TileIndex tile, uint32 flags, uint32 p1, uint32 } } else { SetTrackBits(tile, present); + SetTrackReservation(tile, GetTrackReservation(tile) & present); } } break; -- cgit v1.2.3-70-g09d2