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

This commit is contained in:
alberth 2010-12-24 14:38:00 +00:00
parent fffb8f89a4
commit c5ce84267a

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