diff options
author | Eugene Sandulenko | 2016-05-07 10:25:09 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-05-07 10:25:09 +0200 |
commit | afdbfe4d2f962910a7304394f450fefda2fb1960 (patch) | |
tree | bbf46fdbf718229fdf1d78b0b07b93f25e4ee4fb | |
parent | 090faf5e9f6f329cf2bb31c52071ea16548c961c (diff) | |
download | scummvm-rg350-afdbfe4d2f962910a7304394f450fefda2fb1960.tar.gz scummvm-rg350-afdbfe4d2f962910a7304394f450fefda2fb1960.tar.bz2 scummvm-rg350-afdbfe4d2f962910a7304394f450fefda2fb1960.zip |
AGI: Reset all timers on startup
-rw-r--r-- | engines/agi/agi.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/agi/agi.cpp b/engines/agi/agi.cpp index e566ad12f6..60c8d1f3ef 100644 --- a/engines/agi/agi.cpp +++ b/engines/agi/agi.cpp @@ -403,6 +403,11 @@ AgiEngine::AgiEngine(OSystem *syst, const AGIGameDescription *gameDesc) : AgiBas _lastSaveTime = 0; + _playTimeInSecondsAdjust = 0; + _lastUsedPlayTimeInCycles = 0; + _lastUsedPlayTimeInSeconds = 0; + _passedPlayTimeCycles = 0; + memset(_keyQueue, 0, sizeof(_keyQueue)); _console = nullptr; @@ -418,6 +423,9 @@ AgiEngine::AgiEngine(OSystem *syst, const AGIGameDescription *gameDesc) : AgiBas _inventory = nullptr; _keyHoldMode = false; + + _artificialDelayCurrentRoom = 0; + _artificialDelayCurrentPicture = 0; } void AgiEngine::initialize() { |