From c5ce84267ac9c03a7c3828caf83ee930c27c5c56 Mon Sep 17 00:00:00 2001 From: alberth Date: Fri, 24 Dec 2010 14:38:00 +0000 Subject: (svn r21618) -Fix: Use correct 3 bit mask for directions. --- src/rail_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3-70-g09d2