From 624cac0c805b3c89261cff14f29140f407f8b1dc Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 24 Sep 2022 09:11:06 +0200 Subject: [PATCH] game_keys_scroll not scroll if ALT is pressed --- control.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/control.cpp b/control.cpp index 1c4779a6..f6e738a4 100644 --- a/control.cpp +++ b/control.cpp @@ -941,7 +941,7 @@ EX void mainloopiter() { } else sc_ticks = ticks; - if(game_keys_scroll && !shmup::on && (cmode & sm::NORMAL)) { + if(game_keys_scroll && !shmup::on && (cmode & sm::NORMAL) && !keystate[SDLK_LALT] && !keystate[SDLK_RALT]) { rug::using_rugview urv; auto& lastticks = sc_ticks2; ld t = (ticks - lastticks) * shiftmul / 1000.;