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

eriktorbjorn at users.sourceforge.net eriktorbjorn at users.sourceforge.net
Sun Sep 13 23:12:06 CEST 2009


Revision: 44072
          http://scummvm.svn.sourceforge.net/scummvm/?rev=44072&view=rev
Author:   eriktorbjorn
Date:     2009-09-13 21:12:05 +0000 (Sun, 13 Sep 2009)

Log Message:
-----------
Clarify things a bit by using the constant name rather than zero.

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

Modified: scummvm/trunk/engines/sword1/sword1.cpp
===================================================================
--- scummvm/trunk/engines/sword1/sword1.cpp	2009-09-13 21:05:52 UTC (rev 44071)
+++ scummvm/trunk/engines/sword1/sword1.cpp	2009-09-13 21:12:05 UTC (rev 44072)
@@ -670,7 +670,7 @@
 			else if (((_keyPressed.keycode == Common::KEYCODE_F5 || _keyPressed.keycode == Common::KEYCODE_ESCAPE)
 			         && (Logic::_scriptVars[MOUSE_STATUS] & 1)) || (_systemVars.controlPanelMode)) {
 				retCode = _control->runPanel();
-				if (!retCode)
+				if (retCode == CONTROL_NOTHING_DONE)
 					_screen->fullRefresh();
 			}
 			_mouseState = 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