diff options
author | rubidium <rubidium@openttd.org> | 2008-08-02 22:48:14 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-08-02 22:48:14 +0000 |
commit | 9295bd3f7cbc807b6c7890e4beae998459bbed06 (patch) | |
tree | dab3ca01379f1f3bd003c3649218e1c9306d6bf1 | |
parent | f6555cf6f81776fa4a09fab2091bbbe43972cddc (diff) | |
download | openttd-9295bd3f7cbc807b6c7890e4beae998459bbed06.tar.xz |
(svn r13930) -Codechange [YAPP]: Clear track reservation when removing a rail track. (michi_cc)
-rw-r--r-- | src/rail_cmd.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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; |