From 25dd9d56ad8702aa80b0367cee42f96d5ca5cd65 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 0c2dba35..25df10f9 100644 --- a/desktop_version/src/Graphics.cpp +++ b/desktop_version/src/Graphics.cpp @@ -1836,6 +1836,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)