diff options
author | Paul Gilbert | 2017-07-15 15:48:43 -0400 |
---|---|---|
committer | Paul Gilbert | 2017-07-15 15:48:43 -0400 |
commit | b4c5318e6d48366e23221e9ab1643393c497561e (patch) | |
tree | 093c41f10e22aff55de5daa11a7785cb93744dda /engines/titanic/star_control/star_crosshairs.h | |
parent | 0f33e8ff8feb70f3b0625dc5c2ed012e9d3924e8 (diff) | |
download | scummvm-rg350-b4c5318e6d48366e23221e9ab1643393c497561e.tar.gz scummvm-rg350-b4c5318e6d48366e23221e9ab1643393c497561e.tar.bz2 scummvm-rg350-b4c5318e6d48366e23221e9ab1643393c497561e.zip |
TITANIC: Don't allow starfield to be shown if puzzle was skipped
Diffstat (limited to 'engines/titanic/star_control/star_crosshairs.h')
-rw-r--r-- | engines/titanic/star_control/star_crosshairs.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/titanic/star_control/star_crosshairs.h b/engines/titanic/star_control/star_crosshairs.h index e91e245ad1..ebd6f0d07b 100644 --- a/engines/titanic/star_control/star_crosshairs.h +++ b/engines/titanic/star_control/star_crosshairs.h @@ -120,7 +120,12 @@ public: /** * Returns true if the starfield is solved */ - bool isSolved() const { return _matchIndex == 2; } + bool isSolved() const { return _matchIndex >= 2; } + + /** + * Return true if the starfield puzzle was skipped + */ + bool isSkipped() const { return _matchIndex == 3; } }; } // End of namespace Titanic |