[Scummvm-cvs-logs] CVS: scummvm/scumm script_v8.cpp,2.83,2.84

Max Horn fingolfin at users.sourceforge.net
Tue Dec 31 07:27:01 CET 2002


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv9716

Modified Files:
	script_v8.cpp 
Log Message:
fix opcode that sets actor z cliping. Yeah I know that Guybrush now is drawn wrong - but this change is not the cause for it, it only reveals the problem (which is already causing the canon to be drawn wrong)

Index: script_v8.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script_v8.cpp,v
retrieving revision 2.83
retrieving revision 2.84
diff -u -d -r2.83 -r2.84
--- script_v8.cpp	30 Dec 2002 17:05:38 -0000	2.83
+++ script_v8.cpp	31 Dec 2002 15:26:02 -0000	2.84
@@ -1052,6 +1052,9 @@
 		break;
 	case 0x75:		// SO_ACTOR_ALWAYS_ZCLIP ?
 		a->forceClip = pop();
+		// V8 uses 255 where we used to use 100
+		if (a->forceClip == 255)
+			a->forceClip = 100;
 		break;
 	case 0x76:		// SO_ACTOR_IGNORE_BOXES Make actor ignore boxes
 		a->ignoreBoxes = true;





More information about the Scummvm-git-logs mailing list