(svn r21621) -Codechange: Only consider tile highlighting mode bits in tile selection functions.

This commit is contained in:
alberth
2010-12-24 14:55:31 +00:00
parent e930b9985d
commit 9cdd8c6d48
2 changed files with 10 additions and 9 deletions

View File

@@ -382,7 +382,7 @@ static void HandleAutoSignalPlacement()
TileHighlightData *thd = &_thd;
uint32 p2 = GB(thd->drawstyle, 0, 3); // 0..5
if (thd->drawstyle == HT_RECT) { // one tile case
if ((thd->drawstyle & HT_DRAG_MASK) == HT_RECT) { // one tile case
GenericPlaceSignals(TileVirtXY(thd->selend.x, thd->selend.y));
return;
}