diff options
author | Paul Gilbert | 2015-08-04 19:19:48 -0400 |
---|---|---|
committer | Paul Gilbert | 2015-08-04 19:19:48 -0400 |
commit | 109ee5ba7aeae9c3816d044e961eef4fb1a3ed64 (patch) | |
tree | 4bbee8d4b6cb5313669d7a285fe16926e5a50be4 | |
parent | cb568dbbbe6ff335bbc884192a553751da5f16fc (diff) | |
download | scummvm-rg350-109ee5ba7aeae9c3816d044e961eef4fb1a3ed64.tar.gz scummvm-rg350-109ee5ba7aeae9c3816d044e961eef4fb1a3ed64.tar.bz2 scummvm-rg350-109ee5ba7aeae9c3816d044e961eef4fb1a3ed64.zip |
SHERLOCK: RT: Set up Escape key to automatically win darts game
Unlike in Serrated Scalpel, the darts game can't be skipped, so
there really needs to be a way to skip having to play it
-rw-r--r-- | engines/sherlock/tattoo/tattoo_darts.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/sherlock/tattoo/tattoo_darts.cpp b/engines/sherlock/tattoo/tattoo_darts.cpp index 806b3ff32c..844697a518 100644 --- a/engines/sherlock/tattoo/tattoo_darts.cpp +++ b/engines/sherlock/tattoo/tattoo_darts.cpp @@ -122,6 +122,14 @@ void Darts::playDarts(GameType gameType) { score = (playerNum == 0) ? _score1 : _score2; } + // Special case for ScummVM: I'm making pressing Escape to exit out of the Darts game as a way to skip + // it entirely if you don't want to play all the way through it + if (_escapePressed) { + gameOver = true; + playerNum = 0; + } + + if (_gameType == GAME_301) { if (playerNum == 0) _score1 = score; |