mirror of
https://github.com/scummvm/scummvm.git
synced 2026-05-21 05:40:43 +00:00
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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user