aboutsummaryrefslogtreecommitdiff
path: root/engines/toon
diff options
context:
space:
mode:
authorSylvain Dupont2010-10-15 21:58:34 +0000
committerSylvain Dupont2010-10-15 21:58:34 +0000
commit906704b213aac71aacd3ff029b359dcc99461247 (patch)
treeb4b90b72b966d9394671ba135df1bca0ac96c549 /engines/toon
parentaf52d3a7f631cc4ff64f41ae7bfe20141de263c2 (diff)
downloadscummvm-rg350-906704b213aac71aacd3ff029b359dcc99461247.tar.gz
scummvm-rg350-906704b213aac71aacd3ff029b359dcc99461247.tar.bz2
scummvm-rg350-906704b213aac71aacd3ff029b359dcc99461247.zip
TOON: Fixed bug #3084738 with loading bottomless bag state
Bug #3084738: "TOON: Vanishing bottomless bag" svn-id: r53520
Diffstat (limited to 'engines/toon')
-rw-r--r--engines/toon/toon.cpp18
1 files changed, 10 insertions, 8 deletions
diff --git a/engines/toon/toon.cpp b/engines/toon/toon.cpp
index 87e7c1440e..f881395f0b 100644
--- a/engines/toon/toon.cpp
+++ b/engines/toon/toon.cpp
@@ -850,15 +850,17 @@ void ToonEngine::loadScene(int32 SceneId, bool forGameLoad) {
_lastMouseButton = 0;
_mouseButton = 0;
_currentHotspotItem = -1;
- _gameState->_sackVisible = true;
- _gameState->_inCloseUp = false;
- _gameState->_inConversation = false;
- _gameState->_inInventory = false;
- _gameState->_inCutaway = false;
- _gameState->_currentScrollValue = 0;
- _gameState->_currentScrollLock = false;
- _gameState->_inCloseUp = false;
+ if (!forGameLoad) {
+ _gameState->_sackVisible = true;
+ _gameState->_inCloseUp = false;
+ _gameState->_inConversation = false;
+ _gameState->_inInventory = false;
+ _gameState->_inCutaway = false;
+ _gameState->_currentScrollValue = 0;
+ _gameState->_currentScrollLock = false;
+ _gameState->_inCloseUp = false;
+ }
if (_gameState->_mouseState >= 0)
addItemToInventory(_gameState->_mouseState);