Skip to content

Commit

Permalink
If the prince dies on level 14, don't return to the intro after the l…
Browse files Browse the repository at this point in the history
…evel was restarted.
  • Loading branch information
NagyD committed Apr 18, 2021
1 parent d0374f5 commit 86988c6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/ChangeLog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -634,3 +634,5 @@ FIXED: Fixed the prince sliding through closed gates when you are using the cape
Details: See FIX_CAPED_PRINCE_SLIDING_THROUGH_GATE in config.h .
DONE: Added a compilation-time flag to disable all fixes for vanilla execution.
Details: https://github.com/NagyD/SDLPoP/pull/239
FIXED: If the prince dies on level 14, don't return to the intro after the level was restarted.
Details: See FIX_LEVEL_14_RESTARTING in config.h .
5 changes: 5 additions & 0 deletions src/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,11 @@ The authors of this program may be contacted at https://forum.princed.org
// Explanation: https://forum.princed.org/viewtopic.php?p=32701#p32701
#define FIX_CAPED_PRINCE_SLIDING_THROUGH_GATE

// If the prince dies on level 14, restarting the level will not stop the "Press Button to Continue" timer, and the game will return to the intro after a few seconds.
// How to reproduce: https://forum.princed.org/viewtopic.php?p=16926#p16926
// Technical explanation: https://forum.princed.org/viewtopic.php?p=16408#p16408 (the second half of the post)
#define FIX_LEVEL_14_RESTARTING

#endif // ifndef DISABLE_ALL_FIXES

// Debug features:
Expand Down
3 changes: 3 additions & 0 deletions src/seg008.c
Original file line number Diff line number Diff line change
Expand Up @@ -1821,6 +1821,9 @@ void __pascal far show_time() {

// seg008:25A8
void __pascal far show_level() {
#ifdef FIX_LEVEL_14_RESTARTING
text_time_remaining = text_time_total = 0;
#endif
byte disp_level;
char sprintf_temp[32];
disp_level = current_level;
Expand Down

0 comments on commit 86988c6

Please sign in to comment.