[Scummvm-cvs-logs] SF.net SVN: scummvm:[45752] scummvm/trunk/engines/draci/animation.cpp

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Sun Nov 8 19:55:19 CET 2009


Revision: 45752
          http://scummvm.svn.sourceforge.net/scummvm/?rev=45752&view=rev
Author:   lordhoto
Date:     2009-11-08 18:55:18 +0000 (Sun, 08 Nov 2009)

Log Message:
-----------
Silence gcc warning by putting parentheses around an && expression nested in an || expression.

Modified Paths:
--------------
    scummvm/trunk/engines/draci/animation.cpp

Modified: scummvm/trunk/engines/draci/animation.cpp
===================================================================
--- scummvm/trunk/engines/draci/animation.cpp	2009-11-08 11:04:48 UTC (rev 45751)
+++ scummvm/trunk/engines/draci/animation.cpp	2009-11-08 18:55:18 UTC (rev 45752)
@@ -97,7 +97,7 @@
 	Surface *surface = _vm->_screen->getSurface();
 
 	if (force || (_tick + frame->getDelay() <= _vm->_system->getMillis()) ||
-	    _canBeQuick && _vm->_game->getEnableQuickHero() && _vm->_game->getWantQuickHero()) {
+	    (_canBeQuick && _vm->_game->getEnableQuickHero() && _vm->_game->getWantQuickHero())) {
 		// If we are at the last frame and not looping, stop the animation
 		// The animation is also restarted to frame zero
 		if ((_currentFrame == getFrameCount() - 1) && !_looping) {


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