PHOENIXVR: allow pausetimer only if timer was active

original engine only modifies flags if they were non-zero, or ignore pausetimer command
This commit is contained in:
Vladimir Menshakov
2026-03-10 22:01:27 +00:00
parent f7c61f31de
commit 7b0a692f48
+10 -8
View File
@@ -606,14 +606,16 @@ void PhoenixVREngine::startTimer(float seconds) {
}
void PhoenixVREngine::pauseTimer(bool pause, bool deactivate) {
if (pause)
_timerFlags |= 2;
else
_timerFlags &= ~2;
if (deactivate)
_timerFlags &= ~4;
else
_timerFlags |= 4;
if (_timerFlags) {
if (pause)
_timerFlags |= 2;
else
_timerFlags &= ~2;
if (deactivate)
_timerFlags &= ~4;
else
_timerFlags |= 4;
}
}
void PhoenixVREngine::killTimer() {