[Scummvm-cvs-logs] CVS: scummvm/sword2 function.cpp,1.73,1.74

Torbjörn Andersson eriktorbjorn at users.sourceforge.net
Wed Jan 19 23:33:11 CET 2005


Update of /cvsroot/scummvm/scummvm/sword2
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15390

Modified Files:
	function.cpp 
Log Message:
Fixed bug that I must have introduced during one of my cleanups. The
original code read "LLogic.Logic_up( (*params*65536)+2);".

I don't know where this opcode is actually used, though.


Index: function.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sword2/function.cpp,v
retrieving revision 1.73
retrieving revision 1.74
diff -u -d -r1.73 -r1.74
--- function.cpp	17 Jan 2005 10:57:10 -0000	1.73
+++ function.cpp	20 Jan 2005 07:32:37 -0000	1.74
@@ -73,7 +73,7 @@
 	//		  reference
 
 	_scriptVars[PLAYER_ACTION] = 0;		// must clear this
-	logicUp((params[0] < 16) + 2);		// 3rd script of clicked on id
+	logicUp((params[0] << 16) | 2);		// 3rd script of clicked on id
 
 	// Out, up and around again - pc is saved for current level to be
 	// returned to.





More information about the Scummvm-git-logs mailing list