[Scummvm-cvs-logs] CVS: scummvm/scumm script_v6.cpp,1.167,1.168
Pawel Kolodziejski
aquadran at users.sourceforge.net
Sun Jul 6 16:20:01 CEST 2003
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv19257
Modified Files:
script_v6.cpp
Log Message:
implemented missing puttputt actor opcode 218. this opcode is strange (based of disassembly)
Index: script_v6.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script_v6.cpp,v
retrieving revision 1.167
retrieving revision 1.168
diff -u -d -r1.167 -r1.168
--- script_v6.cpp 6 Jul 2003 17:15:42 -0000 1.167
+++ script_v6.cpp 6 Jul 2003 23:19:03 -0000 1.168
@@ -1742,8 +1742,26 @@
a->initActor(2);
break;
case 218:
- // TODO: this opcode is used in the putt-putt fun pack, in 'checkers" mini game
- warning("o6_actorOps(): unimplemented opcode 218");
+ {
+ // TODO: this opcode is used in the putt-putt fun pack, in 'checkers" mini game
+ warning("o6_actorOps(): unimplemented opcode 218");
+
+ int top_actor = a->top;
+ int bottom_actor = a->bottom;
+// a->_zbuf = 1; ???
+ a->needRedraw = 1;
+ a->drawActorCostume();
+// a->_zbuf = 0; ???
+ a->needRedraw = 0;
+ a->drawActorCostume();
+
+ if (a->top > top_actor) {
+ a->bottom = top_actor;
+ }
+ if (a->bottom > bottom_actor) {
+ a->bottom = bottom_actor;
+ }
+ }
break;
case 227: /* actor_layer */
a->layer = pop();
More information about the Scummvm-git-logs
mailing list