1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-25 01:20:37 +00:00

game_keys_scroll not scroll if ALT is pressed

This commit is contained in:
Zeno Rogue 2022-09-24 09:11:06 +02:00
parent 2e5d9dd626
commit 624cac0c80

View File

@ -941,7 +941,7 @@ EX void mainloopiter() {
} }
else sc_ticks = ticks; 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; rug::using_rugview urv;
auto& lastticks = sc_ticks2; auto& lastticks = sc_ticks2;
ld t = (ticks - lastticks) * shiftmul / 1000.; ld t = (ticks - lastticks) * shiftmul / 1000.;