[Scummvm-git-logs] scummvm master -> 135f3fb128e8f8ed95a6bce292dffacdfc556660
whoozle
noreply at scummvm.org
Mon Mar 9 01:21:47 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:
135f3fb128 PHOENIXVR: handle angleymax -1,-1
Commit: 135f3fb128e8f8ed95a6bce292dffacdfc556660
https://github.com/scummvm/scummvm/commit/135f3fb128e8f8ed95a6bce292dffacdfc556660
Author: Vladimir Menshakov (vladimir.menshakov at gmail.com)
Date: 2026-03-09T01:21:20Z
Commit Message:
PHOENIXVR: handle angleymax -1,-1
Changed paths:
engines/phoenixvr/commands.h
engines/phoenixvr/phoenixvr.h
diff --git a/engines/phoenixvr/commands.h b/engines/phoenixvr/commands.h
index 21683f25729..aea490b62ef 100644
--- a/engines/phoenixvr/commands.h
+++ b/engines/phoenixvr/commands.h
@@ -805,7 +805,13 @@ struct AngleYMax : public Script::Command {
void exec(Script::ExecutionContext &ctx) const override {
debug("angleymax %g %g", yMin, yMax);
- g_engine->setYMax(yMin, yMax);
+ if (yMin != yMax) {
+ debug("angleymax %g %g", yMin, yMax);
+ g_engine->setYMax(yMin, yMax);
+ } else {
+ debug("angleymax: reset");
+ g_engine->resetYMax();
+ }
}
};
diff --git a/engines/phoenixvr/phoenixvr.h b/engines/phoenixvr/phoenixvr.h
index b82b226f4b8..09ad2f51e1a 100644
--- a/engines/phoenixvr/phoenixvr.h
+++ b/engines/phoenixvr/phoenixvr.h
@@ -155,6 +155,10 @@ public:
_angleX.setRange(min, max);
}
+ void resetYMax() {
+ _angleX.resetRange();
+ }
+
void setAngle(float x, float y) {
_angleX.set(y);
static const float baseX = -kPi2;
More information about the Scummvm-git-logs
mailing list