diff options
author | Paul Gilbert | 2015-01-02 12:27:59 -1000 |
---|---|---|
committer | Paul Gilbert | 2015-01-02 12:27:59 -1000 |
commit | 9a8cb48a9edcc67b17c192ff13b3d9d1e40f73a9 (patch) | |
tree | dab7a4d383ded547629fb28a9b9a46e2f861362d /engines/xeen/xeen.cpp | |
parent | 27e020cbf98d88373111bff0f1d6ed0e846b2311 (diff) | |
download | scummvm-rg350-9a8cb48a9edcc67b17c192ff13b3d9d1e40f73a9.tar.gz scummvm-rg350-9a8cb48a9edcc67b17c192ff13b3d9d1e40f73a9.tar.bz2 scummvm-rg350-9a8cb48a9edcc67b17c192ff13b3d9d1e40f73a9.zip |
XEEN: Cleanup of party code split, moved roster and party to engine
Diffstat (limited to 'engines/xeen/xeen.cpp')
-rw-r--r-- | engines/xeen/xeen.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/engines/xeen/xeen.cpp b/engines/xeen/xeen.cpp index 45d9c22413..dfa05b0aa1 100644 --- a/engines/xeen/xeen.cpp +++ b/engines/xeen/xeen.cpp @@ -42,6 +42,7 @@ XeenEngine::XeenEngine(OSystem *syst, const XeenGameDescription *gameDesc) _sound = nullptr; _eventData = nullptr; Common::fill(&_activeRoster[0], &_activeRoster[MAX_ACTIVE_PARTY], nullptr); + _isEarlyGame = false; } XeenEngine::~XeenEngine() { @@ -64,7 +65,7 @@ void XeenEngine::initialize() { FileManager::init(this); _debugger = new Debugger(this); _events = new EventsManager(this); - _saves = new SavesManager(this); + _saves = new SavesManager(this, _party, _roster); _screen = new Screen(this); _screen->setupWindows(); _sound = new SoundManager(this); @@ -254,9 +255,11 @@ void XeenEngine::drawUI() { // Get mappings to the active characters in the party Common::fill(&_activeRoster[0], &_activeRoster[MAX_ACTIVE_PARTY], nullptr); - for (int i = 0; i < _saves->_party._partyCount; ++i) { - _activeRoster[i] = &_saves->_roster[_saves->_party._partyMembers[i]]; + for (int i = 0; i < _party._partyCount; ++i) { + _activeRoster[i] = &_roster[_party._partyMembers[i]]; } + + _isEarlyGame = _party._minutes >= 300; } } // End of namespace Xeen |