[Scummvm-git-logs] scummvm master -> 66110cdcd49ae079d9b82237da908aaa5b26c234
whoozle
noreply at scummvm.org
Fri Mar 13 10:49:01 UTC 2026
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
66110cdcd4 PHOENIXVR: add resetState
Commit: 66110cdcd49ae079d9b82237da908aaa5b26c234
https://github.com/scummvm/scummvm/commit/66110cdcd49ae079d9b82237da908aaa5b26c234
Author: Vladimir Menshakov (vladimir.menshakov at gmail.com)
Date: 2026-03-13T10:47:55Z
Commit Message:
PHOENIXVR: add resetState
This is called when new script loaded, so it resets angle limits and sets them to the initial position
Changed paths:
engines/phoenixvr/phoenixvr.cpp
engines/phoenixvr/phoenixvr.h
diff --git a/engines/phoenixvr/phoenixvr.cpp b/engines/phoenixvr/phoenixvr.cpp
index ba51779c46b..edaf5782314 100644
--- a/engines/phoenixvr/phoenixvr.cpp
+++ b/engines/phoenixvr/phoenixvr.cpp
@@ -88,6 +88,13 @@ PhoenixVREngine::PhoenixVREngine(OSystem *syst, const ADGameDescription *gameDes
}
}
+void PhoenixVREngine::resetState() {
+ _angleX.resetRange();
+ _angleX.set(0);
+ _angleY.resetRange();
+ _angleY.set(-kPi2);
+}
+
PhoenixVREngine::~PhoenixVREngine() {
_system->lockMouse(false);
for (auto it = _cursorCache.begin(); it != _cursorCache.end(); ++it) {
@@ -199,6 +206,7 @@ void PhoenixVREngine::loadNextScript() {
_cursors[i].resize(warp->tests.size());
}
_warpIdx = 0;
+ resetState();
}
void PhoenixVREngine::end() {
diff --git a/engines/phoenixvr/phoenixvr.h b/engines/phoenixvr/phoenixvr.h
index 576e9b836bf..dd64fb86030 100644
--- a/engines/phoenixvr/phoenixvr.h
+++ b/engines/phoenixvr/phoenixvr.h
@@ -213,6 +213,7 @@ private:
void renderVR(float dt);
void renderTimer();
void renderFade(int color);
+ void resetState();
private:
bool _hasFocus = true;
More information about the Scummvm-git-logs
mailing list