aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe/scenes
diff options
context:
space:
mode:
authorEugene Sandulenko2014-03-25 00:25:47 +0200
committerEugene Sandulenko2014-03-25 00:28:52 +0200
commit202804d8d389bbfef9eac3d5f0991e543d67d912 (patch)
tree8228cf46c8ca01fba9573d88c7f0ad9940d60753 /engines/fullpipe/scenes
parent78e58492682c6665c850b6ff427f41cc2fb6b665 (diff)
downloadscummvm-rg350-202804d8d389bbfef9eac3d5f0991e543d67d912.tar.gz
scummvm-rg350-202804d8d389bbfef9eac3d5f0991e543d67d912.tar.bz2
scummvm-rg350-202804d8d389bbfef9eac3d5f0991e543d67d912.zip
FULLPIPE: Implement scene29_updateCursor()
Diffstat (limited to 'engines/fullpipe/scenes')
-rw-r--r--engines/fullpipe/scenes/scene29.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/engines/fullpipe/scenes/scene29.cpp b/engines/fullpipe/scenes/scene29.cpp
index 27d45c2eea..ee6a15971c 100644
--- a/engines/fullpipe/scenes/scene29.cpp
+++ b/engines/fullpipe/scenes/scene29.cpp
@@ -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