fixed smooth movement in modes other than sm::NORMAL

This commit is contained in:
Zeno Rogue committed 2022-05-06 19:55:09 +02:00
1 parent 0c2c32c126
commit 6fe07c389c
4 files changed
+6 -5

No files matched your search

+2 -2
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.;