Don't remove glyphs until they leave screen

This commit is contained in:
Gordon Weeks 2026-01-31 22:21:14 -08:00
parent 2f1a22742b
commit 773b6e3bf5

View File

@ -770,7 +770,8 @@ public:
{
Glyph* n = *it;
float bottom_y = glyph_bottom_y(*n);
if (bottom_y > screen_height + 40.0f)
float top_y = bottom_y - glyph_height_px(*n, lane_width);
if (top_y > screen_height + 40.0f)
{
completed_notes.erase(n);
missed_notes.erase(n);