mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-17 21:51:20 +02:00
change shift+wind tool to not always act like alt was pressed
This commit is contained in:
@@ -1641,7 +1641,10 @@ void GameView::OnTick(float dt)
|
|||||||
}
|
}
|
||||||
else if (windTool && drawMode == DrawLine)
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user