mirror of https://github.com/OpenTTD/OpenTTD
(svn r21618) -Fix: Use correct 3 bit mask for directions.
parent
fffb8f89a4
commit
c5ce84267a
|
@ -361,7 +361,7 @@ static void DoRailroadTrack(int mode)
|
||||||
static void HandleAutodirPlacement()
|
static void HandleAutodirPlacement()
|
||||||
{
|
{
|
||||||
TileHighlightData *thd = &_thd;
|
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
|
if (thd->drawstyle & HT_RAIL) { // one tile case
|
||||||
GenericPlaceRail(TileVirtXY(thd->selend.x, thd->selend.y), trackstat);
|
GenericPlaceRail(TileVirtXY(thd->selend.x, thd->selend.y), trackstat);
|
||||||
|
|
Loading…
Reference in New Issue