diff options
author | Eugene Sandulenko | 2013-12-31 18:12:40 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2013-12-31 18:12:40 +0200 |
commit | 3209d5c0f3620bb141e45da287f25cf4d576dd8e (patch) | |
tree | dd4ee594ab2d4aecef72ff55e4da5c283f8cdc87 /engines | |
parent | 16e510f78ca1cbc67924cf0521e7712fc51d94d0 (diff) | |
download | scummvm-rg350-3209d5c0f3620bb141e45da287f25cf4d576dd8e.tar.gz scummvm-rg350-3209d5c0f3620bb141e45da287f25cf4d576dd8e.tar.bz2 scummvm-rg350-3209d5c0f3620bb141e45da287f25cf4d576dd8e.zip |
FULLPIPE: Implement sceneHandler14_grandmaJump()
Diffstat (limited to 'engines')
-rw-r--r-- | engines/fullpipe/constants.h | 2 | ||||
-rw-r--r-- | engines/fullpipe/scenes/scene14.cpp | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/engines/fullpipe/constants.h b/engines/fullpipe/constants.h index d75d6b7af1..68c5b67dcf 100644 --- a/engines/fullpipe/constants.h +++ b/engines/fullpipe/constants.h @@ -601,6 +601,8 @@ namespace Fullpipe { #define MV_MAN14_STEPFW 1240 #define ST_GMA_SIT 1229 #define QU_GMA_BLINK 1252 +#define QU_GMA_JUMPBK 1251 +#define QU_GMA_JUMPFW 1249 #define QU_GMA_THROW 1255 #define QU_SC14_ENTERLIFT 1225 diff --git a/engines/fullpipe/scenes/scene14.cpp b/engines/fullpipe/scenes/scene14.cpp index e596c2118c..88f4e8e58d 100644 --- a/engines/fullpipe/scenes/scene14.cpp +++ b/engines/fullpipe/scenes/scene14.cpp @@ -139,7 +139,16 @@ void sceneHandler14_showBallFly() { } void sceneHandler14_grandmaJump() { - warning("STUB: sceneHandler14_grandmaJump()"); + BehaviorEntryInfo *beh1 = g_fp->_behaviorManager->getBehaviorEntryInfoByMessageQueueDataId(g_vars->scene14_grandma, ST_GMA_SIT, QU_GMA_JUMPFW); + BehaviorEntryInfo *beh2 = g_fp->_behaviorManager->getBehaviorEntryInfoByMessageQueueDataId(g_vars->scene14_grandma, ST_GMA_SIT, QU_GMA_JUMPBK); + + if (beh1) { + if (beh2) { + int p = beh1->_percent; + beh1->_percent = beh2->_percent; + beh2->_percent = p; + } + } } void sceneHandler14_winArcade() { |