diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/fullpipe/constants.h | 2 | ||||
-rw-r--r-- | engines/fullpipe/scenes/scene38.cpp | 11 |
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() { |