diff options
author | Strangerke | 2011-12-03 14:55:04 +0100 |
---|---|---|
committer | Strangerke | 2011-12-03 14:55:04 +0100 |
commit | ab2e5015afe136ce4ef37edbba0faa58c8a9cc61 (patch) | |
tree | e1e2d7b74e2d2a3d75a41582c4c30edf3bb740b9 /engines/cge | |
parent | a02457a122c0ac4db26550c49dbdb2e10e5a1d27 (diff) | |
download | scummvm-rg350-ab2e5015afe136ce4ef37edbba0faa58c8a9cc61.tar.gz scummvm-rg350-ab2e5015afe136ce4ef37edbba0faa58c8a9cc61.tar.bz2 scummvm-rg350-ab2e5015afe136ce4ef37edbba0faa58c8a9cc61.zip |
CGE: Soltys - Fix for bug #3448836 (losing scene number display after loading and changing scene)
Diffstat (limited to 'engines/cge')
-rw-r--r-- | engines/cge/cge_main.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/cge/cge_main.cpp b/engines/cge/cge_main.cpp index c67356e545..6bcdb0f389 100644 --- a/engines/cge/cge_main.cpp +++ b/engines/cge/cge_main.cpp @@ -688,6 +688,7 @@ void CGEEngine::xScene() { debugC(6, kCGEDebugEngine, "CGEEngine::xScene()"); sceneDown(); + _commandHandler->addCommand(kCmdLevel, -1, _lev, &_sceneLight); sceneUp(); } @@ -729,6 +730,7 @@ void CGEEngine::switchScene(int newScene) { keyClick(); _commandHandler->addCommand(kCmdLabel, -1, 0, NULL); // wait for repaint _commandHandler->addCallback(kCmdExec, 0, 0, kXScene); // switch scene + } } @@ -821,7 +823,7 @@ void System::tick() { if (_vm->_commandHandler->idle()) { if (_vm->_flag[0]) // Pain flag _vm->heroCover(9); - else { // CHECKME: Before, was: if (Startup::_core >= CORE_MID) { + else { int n = _vm->newRandom(100); if (n > 96) _vm->heroCover(6 + (_vm->_hero->_x + _vm->_hero->_w / 2 < kScrWidth / 2)); |