aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/kyra.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2007-04-15 14:38:02 +0000
committerJohannes Schickel2007-04-15 14:38:02 +0000
commitb9443dfb60e533d614c4914dfabb4e75e45cdf38 (patch)
tree66bef48dd8ccea80d14c07e2f4646aa0ff5c9fc0 /engines/kyra/kyra.cpp
parent5668e15b2efb2aa9ab5bff3cf6b257a3986602ff (diff)
downloadscummvm-rg350-b9443dfb60e533d614c4914dfabb4e75e45cdf38.tar.gz
scummvm-rg350-b9443dfb60e533d614c4914dfabb4e75e45cdf38.tar.bz2
scummvm-rg350-b9443dfb60e533d614c4914dfabb4e75e45cdf38.zip
More cleanup.
svn-id: r26502
Diffstat (limited to 'engines/kyra/kyra.cpp')
-rw-r--r--engines/kyra/kyra.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/engines/kyra/kyra.cpp b/engines/kyra/kyra.cpp
index 448e32f4ef..8092f405ef 100644
--- a/engines/kyra/kyra.cpp
+++ b/engines/kyra/kyra.cpp
@@ -505,21 +505,20 @@ void KyraEngine::startup() {
_animator->initAnimStateList();
setCharactersInDefaultScene();
- if (!_scriptInterpreter->loadScript("_STARTUP.EMC", _npcScriptData)) {
+ if (!_scriptInterpreter->loadScript("_STARTUP.EMC", _npcScriptData))
error("Could not load \"_STARTUP.EMC\" script");
- }
_scriptInterpreter->initScript(_scriptMain, _npcScriptData);
- if (!_scriptInterpreter->startScript(_scriptMain, 0)) {
+
+ if (!_scriptInterpreter->startScript(_scriptMain, 0))
error("Could not start script function 0 of script \"_STARTUP.EMC\"");
- }
- while (_scriptInterpreter->validScript(_scriptMain)) {
+
+ while (_scriptInterpreter->validScript(_scriptMain))
_scriptInterpreter->runScript(_scriptMain);
- }
_scriptInterpreter->unloadScript(_npcScriptData);
- if (!_scriptInterpreter->loadScript("_NPC.EMC", _npcScriptData)) {
+
+ if (!_scriptInterpreter->loadScript("_NPC.EMC", _npcScriptData))
error("Could not load \"_NPC.EMC\" script");
- }
snd_playTheme(1);
enterNewScene(_currentCharacter->sceneId, _currentCharacter->facing, 0, 0, 1);