Skip to content

Commit

Permalink
FULLPIPE: Implement scene29_updateCursor()
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Mar 24, 2014
1 parent 78e5849 commit 202804d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions engines/fullpipe/constants.h
Expand Up @@ -1302,6 +1302,7 @@ namespace Fullpipe {
#define MV_PTR_MOVEFAST 2102
#define MV_SHG_HITASS 2151
#define MV_SHR_HITASS 2152
#define PIC_SC29_LTRUBA 2081
#define SND_29_028 4758
#define SND_29_029 4759
#define ST_ASS_NORM 2122
Expand Down
19 changes: 19 additions & 0 deletions engines/fullpipe/scenes/scene29.cpp
Expand Up @@ -410,4 +410,23 @@ int sceneHandler29(ExCommand *cmd) {
return 0;
}

int scene29_updateCursor() {
g_fp->updateCursorCommon();

if (g_vars->scene29_var10) {
if (g_fp->_cursorId != PIC_CSR_DEFAULT_INV && g_fp->_cursorId != PIC_CSR_ITN_INV)
g_fp->_cursorId = -1;
} else if (g_vars->scene29_var09) {
if (g_fp->_cursorId != PIC_CSR_DEFAULT_INV && g_fp->_cursorId != PIC_CSR_ITN_INV)
g_fp->_cursorId = PIC_CSR_DEFAULT;
} else if (g_fp->_objectIdAtCursor == ANI_PORTER) {
if (g_fp->_cursorId == PIC_CSR_DEFAULT)
g_fp->_cursorId = PIC_CSR_ITN;
} else {
if (g_fp->_objectIdAtCursor == PIC_SC29_LTRUBA && g_fp->_cursorId == PIC_CSR_ITN)
g_fp->_cursorId = PIC_CSR_GOL;
}
return g_fp->_cursorId;
}

} // End of namespace Fullpipe

0 comments on commit 202804d

Please sign in to comment.