change shift+wind tool to not always act like alt was pressed

This commit is contained in:
jacob1 2015-11-30 19:19:50 -05:00
parent 9cab6959b6
commit 5afb95dcf1

View File

@ -1641,7 +1641,10 @@ void GameView::OnTick(float dt)
}
else if (windTool && drawMode == DrawLine)
{
c->DrawLine(toolIndex, c->PointTranslate(drawPoint1), lineSnapCoords(c->PointTranslate(drawPoint1), currentMouse));
ui::Point drawPoint2 = currentMouse;
if (altBehaviour)
drawPoint2 = lineSnapCoords(c->PointTranslate(drawPoint1), currentMouse);
c->DrawLine(toolIndex, c->PointTranslate(drawPoint1), drawPoint2);
}
}