aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/sci.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2010-06-10 09:18:57 +0000
committerFilippos Karapetis2010-06-10 09:18:57 +0000
commiteb4ec596cdb8e541d5221263b3db185bd01b206f (patch)
tree83d0f31aaa8a3a5314ae3bc0ec9433818f4552ef /engines/sci/sci.cpp
parent0ab7c908bb3971a74bb1c8848d6f59f161464ad1 (diff)
downloadscummvm-rg350-eb4ec596cdb8e541d5221263b3db185bd01b206f.tar.gz
scummvm-rg350-eb4ec596cdb8e541d5221263b3db185bd01b206f.tar.bz2
scummvm-rg350-eb4ec596cdb8e541d5221263b3db185bd01b206f.zip
Use the SELECTOR() macro for readability
svn-id: r49563
Diffstat (limited to 'engines/sci/sci.cpp')
-rw-r--r--engines/sci/sci.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/sci/sci.cpp b/engines/sci/sci.cpp
index fad4e8c4e8..3a3c147cb6 100644
--- a/engines/sci/sci.cpp
+++ b/engines/sci/sci.cpp
@@ -40,6 +40,7 @@
#include "sci/engine/state.h"
#include "sci/engine/kernel.h"
#include "sci/engine/script.h" // for script_adjust_opcode_formats
+#include "sci/engine/selector.h" // for SELECTOR
#include "sci/sound/audio.h"
#include "sci/sound/soundcmd.h"
@@ -366,7 +367,7 @@ void SciEngine::initStackBaseWithSelector(Selector selector) {
}
void SciEngine::runGame() {
- initStackBaseWithSelector(_kernel->_selectorCache.play); // Call the play selector
+ initStackBaseWithSelector(SELECTOR(play)); // Call the play selector
// Attach the debug console on game startup, if requested
if (DebugMan.isDebugChannelEnabled(kDebugLevelOnStartup))
@@ -383,11 +384,11 @@ void SciEngine::runGame() {
#ifdef USE_OLD_MUSIC_FUNCTIONS
_gamestate->_sound.sfx_reset_player();
#endif
- initStackBaseWithSelector(_kernel->_selectorCache.play);
+ initStackBaseWithSelector(SELECTOR(play));
_gamestate->gameWasRestarted = true;
} else if (_gamestate->abortScriptProcessing == kAbortLoadGame) {
_gamestate->abortScriptProcessing = kAbortNone;
- initStackBaseWithSelector(_kernel->_selectorCache.replay);
+ initStackBaseWithSelector(SELECTOR(replay));
} else {
break; // exit loop
}