diff options
author | Eugene Sandulenko | 2014-01-02 10:42:20 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2014-01-02 10:45:52 +0200 |
commit | 0fc133eab7b007d9dd5b6f8b148fadd36054edad (patch) | |
tree | 796255afa5ea793ea426bcde0059176a8da4d8f9 /engines/fullpipe | |
parent | e19530ce37abfefc91bbbe7182d38171b3e5b909 (diff) | |
download | scummvm-rg350-0fc133eab7b007d9dd5b6f8b148fadd36054edad.tar.gz scummvm-rg350-0fc133eab7b007d9dd5b6f8b148fadd36054edad.tar.bz2 scummvm-rg350-0fc133eab7b007d9dd5b6f8b148fadd36054edad.zip |
FULLPIPE: Implement scene21_updateCursor()
Diffstat (limited to 'engines/fullpipe')
-rw-r--r-- | engines/fullpipe/constants.h | 1 | ||||
-rw-r--r-- | engines/fullpipe/scenes/scene21.cpp | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/engines/fullpipe/constants.h b/engines/fullpipe/constants.h index 53c69771fc..e85ed20beb 100644 --- a/engines/fullpipe/constants.h +++ b/engines/fullpipe/constants.h @@ -726,6 +726,7 @@ namespace Fullpipe { // Scene 21 #define ANI_GIRAFFE_BOTTOM 1633 #define MSG_SC21_UPDATEASS 4211 +#define PIC_SC21_DTRUBA 1823 #define ST_GRFB_SIT 1687 #define ST_GRFB_HANG 1638 diff --git a/engines/fullpipe/scenes/scene21.cpp b/engines/fullpipe/scenes/scene21.cpp index a915d76e53..5a6509964d 100644 --- a/engines/fullpipe/scenes/scene21.cpp +++ b/engines/fullpipe/scenes/scene21.cpp @@ -56,6 +56,16 @@ void scene21_initScene(Scene *sc) { g_fp->initArcadeKeys("SC_21"); } +int scene21_updateCursor() { + g_fp->updateCursorCommon(); + + if (g_fp->_cursorId == PIC_CSR_ITN && g_fp->_objectIdAtCursor == PIC_SC21_DTRUBA) + + g_fp->_cursorId = PIC_CSR_GOD; + + return g_fp->_cursorId; +} + void sceneHandler21_doWiggle() { g_vars->scene21_giraffeBottom->setOXY((int)(cos(g_vars->scene21_wigglePos) * 4.0) + g_vars->scene21_giraffeBottom->_ox, g_vars->scene21_giraffeBottom->_oy); |