From d4e472db1b53bf4951c44f23db5d734faca1b811 Mon Sep 17 00:00:00 2001 From: NyakoFox Date: Fri, 15 Nov 2024 20:19:08 -0400 Subject: [PATCH] Make 0-length gravity lines invisible again --- desktop_version/src/Graphics.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/desktop_version/src/Graphics.cpp b/desktop_version/src/Graphics.cpp index c4aa3fb5..be992db0 100644 --- a/desktop_version/src/Graphics.cpp +++ b/desktop_version/src/Graphics.cpp @@ -1864,6 +1864,11 @@ void Graphics::drawgravityline(const int t, const int x, const int y, const int return; } + if (w <= 0 && h <= 0) + { + return; + } + if (obj.entities[t].life == 0) { if (game.noflashingmode)