[Scummvm-cvs-logs] scummvm master -> 109ee5ba7aeae9c3816d044e961eef4fb1a3ed64
dreammaster
dreammaster at scummvm.org
Wed Aug 5 01:21:47 CEST 2015
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
109ee5ba7a SHERLOCK: RT: Set up Escape key to automatically win darts game
Commit: 109ee5ba7aeae9c3816d044e961eef4fb1a3ed64
https://github.com/scummvm/scummvm/commit/109ee5ba7aeae9c3816d044e961eef4fb1a3ed64
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2015-08-04T19:19:48-04:00
Commit Message:
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
Changed paths:
engines/sherlock/tattoo/tattoo_darts.cpp
diff --git a/engines/sherlock/tattoo/tattoo_darts.cpp b/engines/sherlock/tattoo/tattoo_darts.cpp
index 806b3ff..844697a 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;
More information about the Scummvm-git-logs
mailing list