summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-08-02 22:48:14 +0000
committerrubidium <rubidium@openttd.org>2008-08-02 22:48:14 +0000
commit9295bd3f7cbc807b6c7890e4beae998459bbed06 (patch)
treedab3ca01379f1f3bd003c3649218e1c9306d6bf1
parentf6555cf6f81776fa4a09fab2091bbbe43972cddc (diff)
downloadopenttd-9295bd3f7cbc807b6c7890e4beae998459bbed06.tar.xz
(svn r13930) -Codechange [YAPP]: Clear track reservation when removing a rail track. (michi_cc)
-rw-r--r--src/rail_cmd.cpp1
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;