aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2014-04-19 12:51:45 +0300
committerEugene Sandulenko2014-04-19 12:51:45 +0300
commit3b1af18d92ecf7f6cfe5d0eb0aeae1221530942a (patch)
tree33f286c7de018043178637cb376cf5c8f54d7530
parent9cc4c42024080652d7f5cb9bd3039aed47c623d6 (diff)
downloadscummvm-rg350-3b1af18d92ecf7f6cfe5d0eb0aeae1221530942a.tar.gz
scummvm-rg350-3b1af18d92ecf7f6cfe5d0eb0aeae1221530942a.tar.bz2
scummvm-rg350-3b1af18d92ecf7f6cfe5d0eb0aeae1221530942a.zip
FULLPIPE: Implement ModalMainMenu::isSaveAllowed()
-rw-r--r--engines/fullpipe/modal.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/engines/fullpipe/modal.cpp b/engines/fullpipe/modal.cpp
index e138df2be7..00e9bf8824 100644
--- a/engines/fullpipe/modal.cpp
+++ b/engines/fullpipe/modal.cpp
@@ -27,6 +27,7 @@
#include "fullpipe/motion.h"
#include "fullpipe/scenes.h"
#include "fullpipe/gameloader.h"
+#include "fullpipe/statics.h"
#include "fullpipe/constants.h"
@@ -1108,7 +1109,16 @@ bool ModalMainMenu::isOverArea(PictureObject *obj, Common::Point *point) {
}
bool ModalMainMenu::isSaveAllowed() {
- warning("STUB: ModalMainMenu::isSaveAllowed()");
+ if (!g_fp->_isSaveAllowed)
+ return false;
+
+ if (g_fp->_aniMan->_flags & 0x100)
+ return false;
+
+ for (Common::Array<MessageQueue *>::iterator s = g_fp->_globalMessageQueueList->begin(); s != g_fp->_globalMessageQueueList->end(); ++s) {
+ if (!(*s)->_isFinished && ((*s)->getFlags() & 1))
+ return false;
+ }
return true;
}