[Scummvm-cvs-logs] SF.net SVN: scummvm: [27757] scummvm/trunk/engines/agi/agi.cpp

buddha_ at users.sourceforge.net buddha_ at users.sourceforge.net
Thu Jun 28 16:33:18 CEST 2007


Revision: 27757
          http://scummvm.svn.sourceforge.net/scummvm/?rev=27757&view=rev
Author:   buddha_
Date:     2007-06-28 07:33:17 -0700 (Thu, 28 Jun 2007)

Log Message:
-----------
Removed superfluous comment and converted an int to bool conversion to a more usual way.

Modified Paths:
--------------
    scummvm/trunk/engines/agi/agi.cpp

Modified: scummvm/trunk/engines/agi/agi.cpp
===================================================================
--- scummvm/trunk/engines/agi/agi.cpp	2007-06-28 06:55:00 UTC (rev 27756)
+++ scummvm/trunk/engines/agi/agi.cpp	2007-06-28 14:33:17 UTC (rev 27757)
@@ -334,10 +334,7 @@
 	case ADD_PIC:
 		debugC(8, kDebugLevelMain, "--- decoding picture %d ---", p1);
 		agiLoadResource(rPICTURE, p1);
-		// Not using simply p3 or (bool) p3 for decodePicture's third
-		// parameter because they give a warning C4800 with MSVC8:
-		// 'int16' : forcing value to bool 'true' or 'false' (performance warning)
-		_picture->decodePicture(p1, p2, p3 ? true : false);
+		_picture->decodePicture(p1, p2, p3 != 0);
 		break;
 	case ADD_VIEW:
 		agiLoadResource(rVIEW, p1);


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