void AGOSEngine_Elvira2::oe2_pauseGame() { // 135: pause game HitArea *ha; uint32 pauseTime = getTime(); haltAnimation(); while (!shouldQuit()) { _lastHitArea = NULL; _lastHitArea3 = NULL; while (!shouldQuit()) { if (processSpecialKeys() != 0 || _lastHitArea3 != 0) break; delay(1); } ha = _lastHitArea; if (ha == NULL) { } else if (ha->id == 201) { break; } } restartAnimation(); _gameStoppedClock = getTime() - pauseTime + _gameStoppedClock; }
void AGOSEngine_Waxworks::oww_pauseGame() { // 135: pause game HitArea *ha; uint32 pauseTime = getTime(); haltAnimation(); while (!shouldQuit()) { _lastHitArea = NULL; _lastHitArea3 = NULL; while (!shouldQuit()) { if (_lastHitArea3 != 0) break; delay(1); } ha = _lastHitArea; if (ha == NULL) { } else if (ha->id == 200) { break; } else if (ha->id == 201) { break; } } restartAnimation(); _gameStoppedClock = getTime() - pauseTime + _gameStoppedClock; }