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

mthreepwood at users.sourceforge.net mthreepwood at users.sourceforge.net
Tue Dec 7 02:58:19 CET 2010


Revision: 54808
          http://scummvm.svn.sourceforge.net/scummvm/?rev=54808&view=rev
Author:   mthreepwood
Date:     2010-12-07 01:58:18 +0000 (Tue, 07 Dec 2010)

Log Message:
-----------
MOHAWK: Set the default cursor upon loading a game in Myst

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

Modified: scummvm/trunk/engines/mohawk/myst_saveload.cpp
===================================================================
--- scummvm/trunk/engines/mohawk/myst_saveload.cpp	2010-12-07 01:37:43 UTC (rev 54807)
+++ scummvm/trunk/engines/mohawk/myst_saveload.cpp	2010-12-07 01:58:18 UTC (rev 54808)
@@ -23,6 +23,7 @@
  *
  */
 
+#include "mohawk/cursors.h"
 #include "mohawk/myst.h"
 #include "mohawk/myst_saveload.h"
 
@@ -89,6 +90,21 @@
 	syncGameState(s);
 	delete loadFile;
 
+	// Set our default cursor
+	switch (_v->globals.heldPage) {
+	case 2:
+		_vm->setMainCursor(kBluePageCursor);
+		break;
+	case 8:
+		_vm->setMainCursor(kRedPageCursor);
+		break;
+	case 12:
+		_vm->setMainCursor(kWhitePageCursor);
+		break;
+	default:
+		_vm->setMainCursor(kDefaultMystCursor);
+	}
+
 	return true;
 }
 


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