summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-12-24 14:38:00 +0000
committeralberth <alberth@openttd.org>2010-12-24 14:38:00 +0000
commitc5ce84267ac9c03a7c3828caf83ee930c27c5c56 (patch)
tree08d772ac18567fd8bdaf5cd2db5690039f587ce0
parentfffb8f89a4a184f1ea68fb6f3b1c0820f5ab2ec5 (diff)
downloadopenttd-c5ce84267ac9c03a7c3828caf83ee930c27c5c56.tar.xz
(svn r21618) -Fix: Use correct 3 bit mask for directions.
-rw-r--r--src/rail_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rail_gui.cpp b/src/rail_gui.cpp
index 4699270b8..0e2f51e2a 100644
--- a/src/rail_gui.cpp
+++ b/src/rail_gui.cpp
@@ -361,7 +361,7 @@ static void DoRailroadTrack(int mode)
static void HandleAutodirPlacement()
{
TileHighlightData *thd = &_thd;
- int trackstat = thd->drawstyle & 0xF; // 0..5
+ int trackstat = thd->drawstyle & HT_DIR_MASK; // 0..5
if (thd->drawstyle & HT_RAIL) { // one tile case
GenericPlaceRail(TileVirtXY(thd->selend.x, thd->selend.y), trackstat);