Skip to content

Commit

Permalink
FULLPIPE: Implement FullpipeEngine::disableSaves()
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed May 29, 2014
1 parent 41ffd7a commit aed5de6
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion engines/fullpipe/fullpipe.cpp
Expand Up @@ -510,7 +510,20 @@ void FullpipeEngine::setObjectState(const char *name, int state) {
}

void FullpipeEngine::disableSaves(ExCommand *ex) {
warning("STUB: FullpipeEngine::disableSaves()");
if (_isSaveAllowed) {
_isSaveAllowed = false;

if (_globalMessageQueueList->size() && (*_globalMessageQueueList)[0] != 0) {
for (int i = 0; i < _globalMessageQueueList->size(); i++) {
if ((*_globalMessageQueueList)[i]->_flags & 1)
if ((*_globalMessageQueueList)[i]->_id != ex->_parId && !(*_globalMessageQueueList)[i]->_isFinished)
return;
}
}

if (_currentScene)
_gameLoader->writeSavegame(_currentScene, "savetmp.sav");
}
}


Expand Down

0 comments on commit aed5de6

Please sign in to comment.