aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2014-01-19 17:02:42 +0400
committerEugene Sandulenko2014-01-19 17:02:42 +0400
commit055b390bc727d4fb93ba565dc7d92bfe1bcd70ce (patch)
tree07b3cad70893c0cf9708c5a9c7c20ad62aefb6ed /engines
parent7e07e3448e98fc1bcbe72e0855479a1c300cf611 (diff)
downloadscummvm-rg350-055b390bc727d4fb93ba565dc7d92bfe1bcd70ce.tar.gz
scummvm-rg350-055b390bc727d4fb93ba565dc7d92bfe1bcd70ce.tar.bz2
scummvm-rg350-055b390bc727d4fb93ba565dc7d92bfe1bcd70ce.zip
FULLPIPE: Implement sceneHandler38_drink()
Diffstat (limited to 'engines')
-rw-r--r--engines/fullpipe/constants.h2
-rw-r--r--engines/fullpipe/scenes/scene38.cpp11
2 files changed, 12 insertions, 1 deletions
diff --git a/engines/fullpipe/constants.h b/engines/fullpipe/constants.h
index 25381b616d..e45afe74af 100644
--- a/engines/fullpipe/constants.h
+++ b/engines/fullpipe/constants.h
@@ -1311,6 +1311,8 @@ namespace Fullpipe {
#define MSG_SC38_POSTHMRKICK 2256
#define MSG_SC38_PROPOSE 2287
#define MSG_SC38_TRYTAKEBOTTLE 3179
+#define ST_MLS_LEFT2 2291
+#define QU_MLS_TURNR 2221
#define QU_SC38_SHOWBOTTLE 2199
#define QU_SC38_SHOWBOTTLE_ONTABLE 2838
#define QU_SC38_ENTERLIFT 2836
diff --git a/engines/fullpipe/scenes/scene38.cpp b/engines/fullpipe/scenes/scene38.cpp
index 67a4c21983..121770f400 100644
--- a/engines/fullpipe/scenes/scene38.cpp
+++ b/engines/fullpipe/scenes/scene38.cpp
@@ -111,7 +111,16 @@ void sceneHandler38_hammerKick() {
}
void sceneHandler38_drink() {
- warning("STUB: sceneHandler38_drink()");
+ if (!g_vars->scene38_shorty->_movement) {
+ if (g_vars->scene38_shorty->_flags & 4) {
+ if (!(g_vars->scene38_shorty->_flags & 2) && g_vars->scene38_var11 > 0
+ && g_vars->scene38_shorty->_statics->_staticsId == ST_MLS_LEFT2
+ && g_fp->_rnd->getRandomNumber(32767) < 3276) {
+ chainQueue(QU_MLS_TURNR, 0);
+ g_vars->scene38_var11 = 0;
+ }
+ }
+ }
}
void sceneHandler38_animateAlcoholics() {