aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe/scenes
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/fullpipe/scenes
parent7e07e3448e98fc1bcbe72e0855479a1c300cf611 (diff)
downloadscummvm-rg350-055b390bc727d4fb93ba565dc7d92bfe1bcd70ce.tar.gz
scummvm-rg350-055b390bc727d4fb93ba565dc7d92bfe1bcd70ce.tar.bz2
scummvm-rg350-055b390bc727d4fb93ba565dc7d92bfe1bcd70ce.zip
FULLPIPE: Implement sceneHandler38_drink()
Diffstat (limited to 'engines/fullpipe/scenes')
-rw-r--r--engines/fullpipe/scenes/scene38.cpp11
1 files changed, 10 insertions, 1 deletions
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() {