[Scummvm-cvs-logs] SF.net SVN: scummvm:[42653] scummvm/branches/gsoc2009-draci/engines/draci/ game.cpp

sev at users.sourceforge.net sev at users.sourceforge.net
Wed Jul 22 09:22:12 CEST 2009


Revision: 42653
          http://scummvm.svn.sourceforge.net/scummvm/?rev=42653&view=rev
Author:   sev
Date:     2009-07-22 07:22:12 +0000 (Wed, 22 Jul 2009)

Log Message:
-----------
Fix warnings

Modified Paths:
--------------
    scummvm/branches/gsoc2009-draci/engines/draci/game.cpp

Modified: scummvm/branches/gsoc2009-draci/engines/draci/game.cpp
===================================================================
--- scummvm/branches/gsoc2009-draci/engines/draci/game.cpp	2009-07-22 07:18:00 UTC (rev 42652)
+++ scummvm/branches/gsoc2009-draci/engines/draci/game.cpp	2009-07-22 07:22:12 UTC (rev 42653)
@@ -195,7 +195,7 @@
 			// the current height of the dragon's sprite
 			// We also need to do this before we change the frames' scaled dimensions
 			// so setRelative() can correctly delete the old frame
-			y -= scaleY * height;
+			y -= (int)(scaleY * height);
 			anim->setRelative(x, y);
 
 			// Set the scaled dimensions for all frames
@@ -203,8 +203,8 @@
 				frame = anim->getFrame(i);				
 
 				// Calculate scaled dimensions
-				uint scaledWidth = scaleX * frame->getWidth();
-				uint scaledHeight = scaleY * frame->getHeight();
+				uint scaledWidth = (uint)(scaleX * frame->getWidth());
+				uint scaledHeight = (uint)(scaleY * frame->getHeight());
 
 				frame->setScaled(scaledWidth, scaledHeight);
 			}
@@ -386,8 +386,8 @@
 		uint scaledWidth = animationReader.readUint16LE();
 		uint scaledHeight = animationReader.readUint16LE();
 		byte mirror = animationReader.readByte();
-		uint sample = animationReader.readUint16LE();
-		uint freq = animationReader.readUint16LE();
+		/* uint sample = */ animationReader.readUint16LE();
+		/* uint freq = */ animationReader.readUint16LE();
 		uint delay = animationReader.readUint16LE();
 
 		BAFile *spriteFile = _vm->_spritesArchive->getFile(spriteNum);


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