diff options
author | Strangerke | 2013-10-29 08:18:54 +0100 |
---|---|---|
committer | Strangerke | 2013-10-29 08:18:54 +0100 |
commit | 809aaead099e03a235be0dcb4d18d8ca17d0ea92 (patch) | |
tree | 5a5892bf167b9aa2b836c0f5dd3108b0b0e6df3c /engines | |
parent | c00ff935de452fa32feaab89b5c1c584e5722044 (diff) | |
download | scummvm-rg350-809aaead099e03a235be0dcb4d18d8ca17d0ea92.tar.gz scummvm-rg350-809aaead099e03a235be0dcb4d18d8ca17d0ea92.tar.bz2 scummvm-rg350-809aaead099e03a235be0dcb4d18d8ca17d0ea92.zip |
TOON: Fix CID 1002424
Diffstat (limited to 'engines')
-rw-r--r-- | engines/toon/toon.cpp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/engines/toon/toon.cpp b/engines/toon/toon.cpp index 286bcf1941..a97bfd55e8 100644 --- a/engines/toon/toon.cpp +++ b/engines/toon/toon.cpp @@ -922,6 +922,36 @@ ToonEngine::ToonEngine(OSystem *syst, const ADGameDescription *gameDescription) _gameVariant = 0; break; } + + for (int i = 0; i < 64; i++) { + _sceneAnimationScripts[i]._lastTimer = 0; + _sceneAnimationScripts[i]._frozen = false; + _sceneAnimationScripts[i]._frozenForConversation = false; + _sceneAnimationScripts[i]._active = false; + } + + _lastProcessedSceneScript = 0; + _animationSceneScriptRunFlag = false; + _updatingSceneScriptRunFlag = false; + _dirtyAll = false; + _cursorOffsetX = 0; + _cursorOffsetY = 0; + _currentTextLine = 0; + _currentTextLineId = 0; + _currentTextLineX = 0; + _currentTextLineY = 0; + _currentTextLineCharacterId = -1; + _oldScrollValue = 0; + _drew = nullptr; + _flux = nullptr; + _currentHotspotItem = 0; + _shouldQuit = false; + _scriptStep = 0; + _oldTimer = 0; + _oldTimer2 = 0; + _lastRenderTime = 0; + _firstFrame = false; + _needPaletteFlush = true; } ToonEngine::~ToonEngine() { |