fix: don't fire weapon when choosing upgrade from level-up menu

This commit is contained in:
Quintine committed 2026-08-09 13:56:38 +10:00
1 parent 5e6a7b72fb
commit 7aee2f5f64
3 files changed
+43 -23

No files matched your search

+4
View File
@@ -221,6 +221,10 @@ function update(dt) {
break;
case 'levelup':
updateLevelup();
// A click that installed a perk must not carry the held button into play;
// updatePlayer fires on Input.mdown, so the very next frame would shoot.
// Same mask pattern as the pinned debug console below.
if (G.mode !== 'levelup') Input.mdown = false;
updateParticles(dt);
break;
case 'debug':