diff options
author | Strangerke | 2015-11-24 17:59:44 +0100 |
---|---|---|
committer | Strangerke | 2015-11-24 17:59:44 +0100 |
commit | 2c158d0e4171006d7da886271ed5d96f9ec78ba5 (patch) | |
tree | b2d78f19260417afb1e2d6f066dc40c8f2d9fbcc | |
parent | 351ce463ca1de2d4241162d88653022d65fd004d (diff) | |
download | scummvm-rg350-2c158d0e4171006d7da886271ed5d96f9ec78ba5.tar.gz scummvm-rg350-2c158d0e4171006d7da886271ed5d96f9ec78ba5.tar.bz2 scummvm-rg350-2c158d0e4171006d7da886271ed5d96f9ec78ba5.zip |
MADS: initialize some variables
-rw-r--r-- | engines/mads/conversations.cpp | 1 | ||||
-rw-r--r-- | engines/mads/game.cpp | 26 |
2 files changed, 27 insertions, 0 deletions
diff --git a/engines/mads/conversations.cpp b/engines/mads/conversations.cpp index 86f38b29dc..5328b21ff1 100644 --- a/engines/mads/conversations.cpp +++ b/engines/mads/conversations.cpp @@ -79,6 +79,7 @@ struct ConvData { GameConversation::GameConversation(MADSEngine *vm) : _vm(vm) { _running = _restoreRunning = 0; + _nextStartNode = nullptr; } GameConversation::~GameConversation() { diff --git a/engines/mads/game.cpp b/engines/mads/game.cpp index 607b7a44a6..045410242f 100644 --- a/engines/mads/game.cpp +++ b/engines/mads/game.cpp @@ -92,6 +92,32 @@ Game::Game(MADSEngine *vm) // Load the quotes loadQuotes(); + + _camX._panAllowedFl = false; + _camX._activeFl = false; + _camX._currentFrameFl = false; + _camX._manualFl = false; + _camX._speed = -1; + _camX._rate = -1; + _camX._target = -1; + _camX._distOffCenter = -1; + _camX._startTolerance = -1; + _camX._endTolerance = -1; + _camX._direction = -1; + _camX._timer = 0; + + _camY._panAllowedFl = false; + _camY._activeFl = false; + _camY._currentFrameFl = false; + _camY._manualFl = false; + _camY._speed = -1; + _camY._rate = -1; + _camY._target = -1; + _camY._distOffCenter = -1; + _camY._startTolerance = -1; + _camY._endTolerance = -1; + _camY._direction = -1; + _camY._timer = 0; } Game::~Game() { |