SCI: Add global g_sci pointer to the active SciEngine instance

svn-id: r48046
This commit is contained in:
Max Horn 2010-02-13 17:42:49 +00:00
parent 24fd77eb24
commit ac4d325e0d
21 changed files with 64 additions and 49 deletions

View file

@ -133,7 +133,7 @@ SoundCommandParser::SoundCommandParser(ResourceManager *resMan, SegManager *segM
#ifdef USE_OLD_MUSIC_FUNCTIONS
// The following hack is needed to ease the change from old to new sound code (because the new sound code does not use SfxState)
_state = &((SciEngine *)g_engine)->getEngineState()->_sound; // HACK
_state = &g_sci->getEngineState()->_sound; // HACK
#endif
#ifndef USE_OLD_MUSIC_FUNCTIONS