aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb/input.cpp
diff options
context:
space:
mode:
authorNipun Garg2019-07-14 04:54:22 +0530
committerEugene Sandulenko2019-09-03 17:17:20 +0200
commit6aa054fcacfd8f7c68e3131d8ef5905ee8478150 (patch)
tree22704a413096f1b569108b2df268fc19384f1386 /engines/hdb/input.cpp
parented60dcd50607ecdd6c10eaedc477f4954c4361eb (diff)
downloadscummvm-rg350-6aa054fcacfd8f7c68e3131d8ef5905ee8478150.tar.gz
scummvm-rg350-6aa054fcacfd8f7c68e3131d8ef5905ee8478150.tar.bz2
scummvm-rg350-6aa054fcacfd8f7c68e3131d8ef5905ee8478150.zip
HDB: Unstub the TRY AGAIN screen
Diffstat (limited to 'engines/hdb/input.cpp')
-rw-r--r--engines/hdb/input.cpp15
1 files changed, 13 insertions, 2 deletions
diff --git a/engines/hdb/input.cpp b/engines/hdb/input.cpp
index 35346f50c5..aef6ecf6e3 100644
--- a/engines/hdb/input.cpp
+++ b/engines/hdb/input.cpp
@@ -92,7 +92,13 @@ void Input::setButtons(uint16 b) {
if (g_hdb->getGameState() == GAME_PLAY) {
// Is Player Dead? Click on TRY AGAIN
if (g_hdb->_ai->playerDead()) {
- warning("STUB: TRY AGAIN is onscreen");
+ // TRY AGAIN is onscreen...
+ if (_buttons & kButtonB) {
+ if (g_hdb->loadGameState(kAutoSaveSlot).getCode() == Common::kNoError) {
+ g_hdb->_window->clearTryAgain();
+ g_hdb->setGameState(GAME_PLAY);
+ }
+ }
return;
}
@@ -144,7 +150,12 @@ void Input::stylusDown(int x, int y) {
case GAME_PLAY:
// Is Player Dead? Click on TRY AGAIN
if (g_hdb->_ai->playerDead()) {
- warning("STUB: TRY AGAIN is onscreen");
+ if (y >= kTryRestartY && y <= kTryRestartY + 24) {
+ if (g_hdb->loadGameState(kAutoSaveSlot).getCode() == Common::kNoError) {
+ g_hdb->_window->clearTryAgain();
+ g_hdb->setGameState(GAME_PLAY);
+ }
+ }
return;
}