From 452849df745d009e1016186d6e8e689a2504b155 Mon Sep 17 00:00:00 2001 From: Saveliy Skresanov Date: Mon, 13 Jan 2025 22:38:43 +0700 Subject: [PATCH] Draw air velocity line near cursor when air velocity mode and debug HUD are on. --- src/gui/game/GameView.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/gui/game/GameView.cpp b/src/gui/game/GameView.cpp index 25930f789..7db05e05a 100644 --- a/src/gui/game/GameView.cpp +++ b/src/gui/game/GameView.cpp @@ -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);