From 2934f7a60537b1d7156bc26c4f0131c00d70ddbc Mon Sep 17 00:00:00 2001 From: NagyD Date: Sat, 26 Dec 2020 12:41:49 +0100 Subject: [PATCH] Added a cheat key for going back to the room where the prince is. --- doc/ChangeLog.txt | 1 + doc/Readme.txt | 1 + src/seg000.c | 4 ++++ 3 files changed, 6 insertions(+) diff --git a/doc/ChangeLog.txt b/doc/ChangeLog.txt index 79870eb1..1bf987e0 100644 --- a/doc/ChangeLog.txt +++ b/doc/ChangeLog.txt @@ -592,3 +592,4 @@ FIXED: After quickload, don't draw guard HP if a previously viewed room (with th DONE: Speed up music, sounds, and transitions during fast forwarding. FIXED: Prevent the modifier remapping from accessing out-of-range rooms. FIXED: Don't show the mirror image if the prince is not in the currently shown room. +DONE: Added a new cheat key: Ctrl+B: Go back to the room where the prince is. (Undo H,J,U,N.) diff --git a/doc/Readme.txt b/doc/Readme.txt index acf77576..bd56aa7d 100644 --- a/doc/Readme.txt +++ b/doc/Readme.txt @@ -195,6 +195,7 @@ Cheats: * j: look at room to the right * u: look at room above * n: look at room below +* Ctrl+B: Go back to the room where the prince is. (Undo H,J,U,N.) * Shift-B: toggle hiding of non-animated objects * Shift-S: Restore lost hit-point. (Like a small red potion.) * Shift-T: Give more hit-points. (Like a big red potion.) diff --git a/src/seg000.c b/src/seg000.c index 205eb657..1d378694 100644 --- a/src/seg000.c +++ b/src/seg000.c @@ -775,6 +775,10 @@ int __pascal far process_key() { draw_guard_hp(0, 10); next_room = room_B; break; + case SDL_SCANCODE_B | WITH_CTRL: // Ctrl+B --> Go back to the room where the prince is. (Undo H,J,U,N.) + draw_guard_hp(0, 10); + next_room = Kid.room; + break; case SDL_SCANCODE_B | WITH_SHIFT: // shift-b is_blind_mode = !is_blind_mode; if (is_blind_mode) {