diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/rail_gui.cpp | 2 |
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); |