[Scummvm-git-logs] scummvm master -> 27f1d4d163dc87eeee478704a36b4b8d008f46b0
alxpnv
a04198622 at gmail.com
Mon Oct 25 12:16:56 UTC 2021
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
27f1d4d163 ASYLUM: allow setting player position in scroll mode
Commit: 27f1d4d163dc87eeee478704a36b4b8d008f46b0
https://github.com/scummvm/scummvm/commit/27f1d4d163dc87eeee478704a36b4b8d008f46b0
Author: alxpnv (alxpnv22 at yahoo.com)
Date: 2021-10-25T15:20:00+03:00
Commit Message:
ASYLUM: allow setting player position in scroll mode
Changed paths:
engines/asylum/views/scene.cpp
diff --git a/engines/asylum/views/scene.cpp b/engines/asylum/views/scene.cpp
index 3ee7dc77d7..a1b9aaea1e 100644
--- a/engines/asylum/views/scene.cpp
+++ b/engines/asylum/views/scene.cpp
@@ -505,12 +505,22 @@ bool Scene::key(const AsylumEvent &evt) {
getActor()->setLastScreenUpdate(_vm->screenUpdateCount);
}
break;
+
+ case Common::KEYCODE_m:
+ g_debugScrolling = !g_debugScrolling;
+ break;
}
return true;
}
bool Scene::clickDown(const AsylumEvent &evt) {
+ if (g_debugScrolling) {
+ g_debugScrolling = 0;
+ getActor()->setPosition(_ws->xLeft + evt.mouse.x, _ws->yTop + evt.mouse.y, getActor()->getDirection(), getActor()->getFrameIndex());
+ return true;
+ }
+
_vm->lastScreenUpdate = 0;
if (getSharedData()->getFlag(kFlag2)) {
More information about the Scummvm-git-logs
mailing list