[Scummvm-cvs-logs] SF.net SVN: scummvm:[42382] scummvm/trunk/engines/scumm/he/logic_he.cpp

Kirben at users.sourceforge.net Kirben at users.sourceforge.net
Sat Jul 11 14:23:42 CEST 2009


Revision: 42382
          http://scummvm.svn.sourceforge.net/scummvm/?rev=42382&view=rev
Author:   Kirben
Date:     2009-07-11 12:23:42 +0000 (Sat, 11 Jul 2009)

Log Message:
-----------
Fix pinball type mini game in Putt-Putt Enters The Race.

Modified Paths:
--------------
    scummvm/trunk/engines/scumm/he/logic_he.cpp

Modified: scummvm/trunk/engines/scumm/he/logic_he.cpp
===================================================================
--- scummvm/trunk/engines/scumm/he/logic_he.cpp	2009-07-11 11:48:01 UTC (rev 42381)
+++ scummvm/trunk/engines/scumm/he/logic_he.cpp	2009-07-11 12:23:42 UTC (rev 42382)
@@ -357,8 +357,8 @@
 	const double scalarProduct = x * args[0] + y * args[1];
 
 	// Finally compute the projection of (arg2,arg3) onto (arg0,arg1)
-	double projX = args[0] - 2 * scalarProduct * args[2];
-	double projY = args[1] - 2 * scalarProduct * args[3];
+	double projX = args[0] - 2 * scalarProduct * x;
+	double projY = args[1] - 2 * scalarProduct * y;
 
 	projX = projX * 20.0 / 23.0;	// FIXME: Why is this here?
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list