Permalink
Browse files

MOHAWK: RIVEN: Don't allow GMM saving at the main menu

Currently, the game can be saved as soon as the game has started
at the main menu.

This change prevents that and other times that the menu is opened.
The game can still be saved via the main menu once a game has
been started (not using the gmm).

GMM saving still works where it used to outside of the main menu.
  • Loading branch information...
dafioram committed Sep 2, 2018
1 parent cc09b66 commit 2c6203dcda83354839f732c3754e10b23ebc0da4
Showing with 2 additions and 1 deletion.
  1. +2 −1 engines/mohawk/riven.cpp
@@ -795,7 +795,8 @@ bool MohawkEngine_Riven::canLoadGameStateCurrently() {
}

bool MohawkEngine_Riven::canSaveGameStateCurrently() {
return canLoadGameStateCurrently();
return canLoadGameStateCurrently() &&
!(_stack->getId() == kStackAspit && _card->getId() == 1);
}

bool MohawkEngine_Riven::hasGameEnded() const {

0 comments on commit 2c6203d

Please sign in to comment.