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

mthreepwood at users.sourceforge.net mthreepwood at users.sourceforge.net
Tue Dec 7 20:41:49 CET 2010


Revision: 54816
          http://scummvm.svn.sourceforge.net/scummvm/?rev=54816&view=rev
Author:   mthreepwood
Date:     2010-12-07 19:41:49 +0000 (Tue, 07 Dec 2010)

Log Message:
-----------
MOHAWK: Default to the main cursor if no cursor hints are present; fixes a couple cards

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

Modified: scummvm/trunk/engines/mohawk/myst.cpp
===================================================================
--- scummvm/trunk/engines/mohawk/myst.cpp	2010-12-07 18:54:21 UTC (rev 54815)
+++ scummvm/trunk/engines/mohawk/myst.cpp	2010-12-07 19:41:49 UTC (rev 54816)
@@ -935,8 +935,14 @@
 }
 
 void MohawkEngine_Myst::checkCursorHints() {
-	if (!_view.hint)
+	if (!_view.hint) {
+		// Default to the main cursor when no hints are present
+		if (_currentCursor != _mainCursor) {
+			_currentCursor = _mainCursor;
+			_cursor->setCursor(_currentCursor);
+		}
 		return;
+	}
 
 	// Check all the cursor hints to see if we're in a hotspot that contains a hint.
 	for (uint16 i = 0; i < _cursorHintCount; 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