1
0
Fork 0

(svn r21618) -Fix: Use correct 3 bit mask for directions.

release/1.1
alberth 2010-12-24 14:38:00 +00:00
parent fffb8f89a4
commit c5ce84267a
1 changed files with 1 additions and 1 deletions

View File

@ -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);