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:
parent
2e5d9dd626
commit
624cac0c80
@ -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.;
|
||||||
|
Loading…
Reference in New Issue
Block a user