aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe/fullpipe.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2013-08-07 20:52:23 +0300
committerEugene Sandulenko2013-09-06 14:51:11 +0300
commitea91b8f7998cc4a06f4f5d8732a1b9b0309d95d2 (patch)
tree14868fc0cfefffa27005e3fe56f9fedb455e1061 /engines/fullpipe/fullpipe.cpp
parent133a77887f51ba2a01c3a6839606f121326637f9 (diff)
downloadscummvm-rg350-ea91b8f7998cc4a06f4f5d8732a1b9b0309d95d2.tar.gz
scummvm-rg350-ea91b8f7998cc4a06f4f5d8732a1b9b0309d95d2.tar.bz2
scummvm-rg350-ea91b8f7998cc4a06f4f5d8732a1b9b0309d95d2.zip
FULLPIPE: Initial code for SC_1
Diffstat (limited to 'engines/fullpipe/fullpipe.cpp')
-rw-r--r--engines/fullpipe/fullpipe.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/engines/fullpipe/fullpipe.cpp b/engines/fullpipe/fullpipe.cpp
index 9585f07836..2a5ceb1671 100644
--- a/engines/fullpipe/fullpipe.cpp
+++ b/engines/fullpipe/fullpipe.cpp
@@ -55,6 +55,7 @@ FullpipeEngine::FullpipeEngine(OSystem *syst, const ADGameDescription *gameDesc)
_pictureScale = 8;
_scrollSpeed = 0;
_currSoundListCount = 0;
+ _globalPalette = 0;
_updateTicks = 0;
@@ -72,7 +73,7 @@ FullpipeEngine::FullpipeEngine(OSystem *syst, const ADGameDescription *gameDesc)
_gameContinue = true;
_needRestart = false;
- _flgPlayIntro = true;
+ _flgPlayIntro = false;
_flgSavegameMenuRequested = false;
_isProcessingMessages = false;
@@ -275,6 +276,15 @@ int FullpipeEngine::getObjectEnumState(const char *name, const char *state) {
return 0;
}
+int FullpipeEngine::getObjectState(const char *objname) {
+ CGameVar *var = _gameLoader->_gameVar->getSubVarByName("OBJSTATES");
+
+ if (var)
+ return var->getSubVarAsInt(objname);
+
+ return 0;
+}
+
void FullpipeEngine::setObjectState(const char *name, int state) {
CGameVar *var = _gameLoader->_gameVar->getSubVarByName("OBJSTATES");