SAGA: Avoid code duplication

This commit is contained in:
Willem Jan Palenstijn 2015-05-14 16:55:10 +02:00
parent 8466c0f08d
commit 8919a8e841

View File

@ -835,13 +835,14 @@ void Scene::loadScene(LoadSceneParams &loadSceneParams) {
loadSceneParams.sceneProc(SCENE_BEGIN, this);
}
// We probably don't want "followers" to go into scene -1 , 0. At the very
// least we don't want garbage to be drawn that early in the ITE intro.
if (_sceneNumber > 0 && !(_vm->getGameId() == GID_ITE && _sceneNumber == ITE_SCENE_PUZZLE))
_vm->_actor->updateActorsScene(loadSceneParams.actorsEntrance);
if (_vm->getGameId() == GID_ITE && _sceneNumber == ITE_SCENE_PUZZLE)
if (_vm->getGameId() == GID_ITE && _sceneNumber == ITE_SCENE_PUZZLE) {
_vm->_puzzle->execute();
} else {
// We probably don't want "followers" to go into scene -1 , 0. At the very
// least we don't want garbage to be drawn that early in the ITE intro.
if (_sceneNumber > 0)
_vm->_actor->updateActorsScene(loadSceneParams.actorsEntrance);
}
if (getFlags() & kSceneFlagShowCursor) {
// Activate user interface