Skip to content

Commit

Permalink
Make 0-length gravity lines invisible again
Browse files Browse the repository at this point in the history
  • Loading branch information
NyakoFox authored and flibitijibibo committed Nov 17, 2024
1 parent 149f5fb commit 25dd9d5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions desktop_version/src/Graphics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 25dd9d5

Please sign in to comment.