summaryrefslogtreecommitdiff
path: root/src
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
commit063208a56f4cafe17b33ba13b5737b407a5d7aea (patch)
treedab3ca01379f1f3bd003c3649218e1c9306d6bf1 /src
parent8ffc05a02c74d013b0c058553e29a1cfb8b3c95d (diff)
downloadopenttd-063208a56f4cafe17b33ba13b5737b407a5d7aea.tar.xz
(svn r13930) -Codechange [YAPP]: Clear track reservation when removing a rail track. (michi_cc)
Diffstat (limited to 'src')
-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;