MOHAWK: Set the default cursor upon loading a game in Myst
svn-id: r54808
This commit is contained in:
parent
a789ee11c2
commit
a8c8172315
1 changed files with 16 additions and 0 deletions
|
@ -23,6 +23,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include "mohawk/cursors.h"
|
||||
#include "mohawk/myst.h"
|
||||
#include "mohawk/myst_saveload.h"
|
||||
|
||||
|
@ -89,6 +90,21 @@ bool MystSaveLoad::loadGame(const Common::String &filename) {
|
|||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue