slight menu optimization for long menus

This commit is contained in:
scgbckbone 2026-05-24 20:12:18 +02:00 committed by doc-hex
parent f5a1ef32c9
commit 9ff3f5c447

View File

@ -290,7 +290,7 @@ class MenuSystem:
dis.clear()
cursor_y = None
for n in range(self.ypos+PER_M+1):
for n in range(PER_M+1):
real_idx = n+self.ypos
if real_idx >= self.count: break