[Scummvm-cvs-logs] SF.net SVN: scummvm:[47097] scummvm/trunk/engines/teenagent/actor.cpp

megath at users.sourceforge.net megath at users.sourceforge.net
Wed Jan 6 22:03:53 CET 2010


Revision: 47097
          http://scummvm.svn.sourceforge.net/scummvm/?rev=47097&view=rev
Author:   megath
Date:     2010-01-06 21:03:52 +0000 (Wed, 06 Jan 2010)

Log Message:
-----------
added hardcoded height value

Modified Paths:
--------------
    scummvm/trunk/engines/teenagent/actor.cpp

Modified: scummvm/trunk/engines/teenagent/actor.cpp
===================================================================
--- scummvm/trunk/engines/teenagent/actor.cpp	2010-01-06 20:54:18 UTC (rev 47096)
+++ scummvm/trunk/engines/teenagent/actor.cpp	2010-01-06 21:03:52 UTC (rev 47097)
@@ -54,7 +54,7 @@
 	Surface *s = frames + *frames_idle - 1;
 
 	///\todo remove copy-paste here and below
-	int xp = position.x - s->w * zoom / 512 - s->x, yp = position.y - s->h * zoom / 256 - s->y;
+	int xp = position.x - s->w * zoom / 512 - s->x, yp = position.y - 62 * zoom / 256 - s->y; //hardcoded in original game
 	return s->render(surface, xp, yp, mirror, Common::Rect(), zoom);
 }
 


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