1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-24 18:37:39 +00:00

fixed smooth movement in modes other than sm::NORMAL

This commit is contained in:
Zeno Rogue
2022-05-06 19:12:02 +02:00
parent 0c2c32c126
commit 6fe07c389c
4 changed files with 6 additions and 5 deletions

View File

@@ -735,7 +735,7 @@ EX void mainloopiter() {
}
mousepan = cmode & sm::NORMAL;
if((cmode & (sm::DRAW | sm::MAP)) && !hiliteclick) mousepan = true;
if((cmode & sm::PANNING) && !hiliteclick) mousepan = true;
if(cmode & sm::SHOWCURSOR) mousepan = false;
mousepan = mousepan && mouseaiming(false) && mouseaim_sensitivity;
if(mousepan != oldmousepan) {
@@ -900,7 +900,7 @@ EX void mainloopiter() {
#endif
}
if(smooth_scrolling && !shmup::on && (cmode & sm::NORMAL)) {
if(smooth_scrolling && !shmup::on && (cmode & (sm::NORMAL | sm::PANNING))) {
rug::using_rugview urv;
auto& lastticks = sc_ticks;
ld t = (ticks - lastticks) * shiftmul / 1000.;