[Scummvm-cvs-logs] SF.net SVN: scummvm:[55366] scummvm/trunk/engines/mohawk/cstime_game.cpp

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Fri Jan 21 01:29:55 CET 2011


Revision: 55366
          http://scummvm.svn.sourceforge.net/scummvm/?rev=55366&view=rev
Author:   thebluegr
Date:     2011-01-21 00:29:55 +0000 (Fri, 21 Jan 2011)

Log Message:
-----------
MOHAWK: Added a FIXME and fixed a logic bug

Modified Paths:
--------------
    scummvm/trunk/engines/mohawk/cstime_game.cpp

Modified: scummvm/trunk/engines/mohawk/cstime_game.cpp
===================================================================
--- scummvm/trunk/engines/mohawk/cstime_game.cpp	2011-01-20 22:50:50 UTC (rev 55365)
+++ scummvm/trunk/engines/mohawk/cstime_game.cpp	2011-01-21 00:29:55 UTC (rev 55366)
@@ -556,6 +556,7 @@
 	}
 
 	if (_currHover != (uint)~0) {
+		// FIXME: cursorGetState() returns a bool, so this check below can never be true
 		if (_vm->getInterface()->cursorGetState() != 3) {
 			_vm->getInterface()->cursorSetShape(1, true);
 			if (_vm->getInterface()->getInventoryDisplay()->getState() != 4)
@@ -1003,7 +1004,7 @@
 				continue;
 		}
 
-		if (i != _hoverHotspot);
+		if (i != _hoverHotspot)
 			_vm->getInterface()->clearTextLine();
 		cursorOverHotspot(i);
 		_hoverHotspot = i;


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