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

mthreepwood at users.sourceforge.net mthreepwood at users.sourceforge.net
Fri Sep 4 01:06:11 CEST 2009


Revision: 43931
          http://scummvm.svn.sourceforge.net/scummvm/?rev=43931&view=rev
Author:   mthreepwood
Date:     2009-09-03 23:06:11 +0000 (Thu, 03 Sep 2009)

Log Message:
-----------
Silence gcc warnings.

Modified Paths:
--------------
    scummvm/trunk/engines/teenagent/animation.cpp
    scummvm/trunk/engines/teenagent/scene.cpp

Modified: scummvm/trunk/engines/teenagent/animation.cpp
===================================================================
--- scummvm/trunk/engines/teenagent/animation.cpp	2009-09-03 22:45:55 UTC (rev 43930)
+++ scummvm/trunk/engines/teenagent/animation.cpp	2009-09-03 23:06:11 UTC (rev 43931)
@@ -138,7 +138,7 @@
 		frames_count = 0;
 		for(byte i = 0; i < data_size / 3; ++i) {
 			int idx = i * 3;
-			byte unk = s->readByte();
+			/* byte unk = */ s->readByte();
 			data[idx] = s->readByte();
 			if (data[idx] == 0)
 				data[idx] = 1; //fixme: investigate

Modified: scummvm/trunk/engines/teenagent/scene.cpp
===================================================================
--- scummvm/trunk/engines/teenagent/scene.cpp	2009-09-03 22:45:55 UTC (rev 43930)
+++ scummvm/trunk/engines/teenagent/scene.cpp	2009-09-03 23:06:11 UTC (rev 43931)
@@ -69,7 +69,7 @@
 	destination = point;
 	orientation = orient;
 	position0 = position; 
-	progress_total = 1 + sqrt((float)position.sqrDist(destination)) / 10; 
+	progress_total = 1 + (int)(sqrt((float)position.sqrDist(destination)) / 10); 
 	progress = 0;
 }
 


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