[Scummvm-cvs-logs] scummvm master -> a140837f79362d50ef772b301a2a9413c31f9d6b
sev-
sev at scummvm.org
Fri Feb 28 22:13:07 CET 2014
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
a140837f79 FULLPIPE: Implement scene18_updateCursor()
Commit: a140837f79362d50ef772b301a2a9413c31f9d6b
https://github.com/scummvm/scummvm/commit/a140837f79362d50ef772b301a2a9413c31f9d6b
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2014-02-28T13:12:31-08:00
Commit Message:
FULLPIPE: Implement scene18_updateCursor()
Changed paths:
engines/fullpipe/constants.h
engines/fullpipe/scenes.cpp
engines/fullpipe/scenes.h
engines/fullpipe/scenes/scene18and19.cpp
diff --git a/engines/fullpipe/constants.h b/engines/fullpipe/constants.h
index afa5218..e215200 100644
--- a/engines/fullpipe/constants.h
+++ b/engines/fullpipe/constants.h
@@ -877,6 +877,10 @@ namespace Fullpipe {
#define ANI_GIRL18 1484
#define ANI_KRESLO 1459
#define ANI_WHIRLIGIG_18 829
+#define PIC_SC18_DOMIN 5184
+#define PIC_SC18_LADDER1 1471
+#define PIC_SC18_LADDER2 1472
+#define PIC_SC18_LADDER3 3299
#define PIC_SC18_RTRUBA 1520
#define SND_18_006 3906
#define SND_18_010 4994
diff --git a/engines/fullpipe/scenes.cpp b/engines/fullpipe/scenes.cpp
index 07f7f76..aadbe38 100644
--- a/engines/fullpipe/scenes.cpp
+++ b/engines/fullpipe/scenes.cpp
@@ -281,6 +281,7 @@ Vars::Vars() {
scene18_var08 = 0;
scene18_var03 = false;
scene18_var21 = 0;
+ scene18_var11 = 0;
scene18_var12 = 0;
scene18_var22 = 1;
scene18_var23 = -1;
diff --git a/engines/fullpipe/scenes.h b/engines/fullpipe/scenes.h
index bc47831..5d6856f 100644
--- a/engines/fullpipe/scenes.h
+++ b/engines/fullpipe/scenes.h
@@ -471,6 +471,7 @@ public:
int scene18_var08;
bool scene18_var03;
int scene18_var21;
+ int scene18_var11;
int scene18_var12;
int scene18_var22;
int scene18_var23;
diff --git a/engines/fullpipe/scenes/scene18and19.cpp b/engines/fullpipe/scenes/scene18and19.cpp
index 033d705..4994a02 100644
--- a/engines/fullpipe/scenes/scene18and19.cpp
+++ b/engines/fullpipe/scenes/scene18and19.cpp
@@ -104,4 +104,24 @@ void scene19_initScene2() {
g_vars->scene19_var04 = 300;
}
+int scene18_updateCursor() {
+ if (g_vars->scene18_var15) {
+ g_fp->_cursorId = PIC_CSR_DEFAULT;
+ } else {
+ g_fp->updateCursorCommon();
+
+ if (g_fp->_cursorId == PIC_CSR_ITN) {
+ if (g_fp->_objectIdAtCursor == PIC_SC18_LADDER1) {
+ g_fp->_cursorId = (g_vars->scene18_var11 <= 250) ? PIC_CSR_GOD : PIC_CSR_GOU;
+ } else if (g_fp->_objectIdAtCursor == PIC_SC18_LADDER2 || g_fp->_objectIdAtCursor == PIC_SC18_LADDER3) {
+ g_fp->_cursorId = PIC_CSR_GOU;
+ }
+ } else if (g_fp->_cursorId == PIC_CSR_DEFAULT && g_fp->_objectIdAtCursor == PIC_SC18_DOMIN && g_vars->scene18_domino && (g_vars->scene18_domino->_flags & 4)) {
+ g_fp->_cursorId = PIC_CSR_ITN;
+ }
+ }
+
+ return g_fp->_cursorId;
+}
+
} // End of namespace Fullpipe
More information about the Scummvm-git-logs
mailing list