mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-08 07:21:53 +00:00
(svn r21618) -Fix: Use correct 3 bit mask for directions.
This commit is contained in:
parent
fffb8f89a4
commit
c5ce84267a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user