Skip to content

Commit

Permalink
Added a cheat key for going back to the room where the prince is.
Browse files Browse the repository at this point in the history
  • Loading branch information
NagyD committed Dec 26, 2020
1 parent 28741e1 commit 2934f7a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/ChangeLog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.)
1 change: 1 addition & 0 deletions doc/Readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.)
Expand Down
4 changes: 4 additions & 0 deletions src/seg000.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 2934f7a

Please sign in to comment.