Draw air velocity line near cursor when air velocity mode and debug HUD are on.

This commit is contained in:
Saveliy Skresanov
2025-01-13 22:38:43 +07:00
parent dbfeca5bd0
commit 452849df74

View File

@@ -2185,6 +2185,13 @@ void GameView::OnDraw()
ui::Point finalCurrentMouse = c->PointTranslate(currentMouse);
ui::Point initialDrawPoint = drawPoint1;
//Air velocity line near cursor
if (showDebug && (rendererSettings->displayMode & DISPLAY_AIRV))
{
g->XorLine({finalCurrentMouse.X, finalCurrentMouse.Y},
{finalCurrentMouse.X + (int)(10.0f*sample.AirVelocityX), finalCurrentMouse.Y + (int)(10.0f*sample.AirVelocityY)});
}
if (wallBrush)
{
finalCurrentMouse = c->NormaliseBlockCoord(finalCurrentMouse);