NagyD / SDLPoP

An open-source port of Prince of Persia, based on the disassembly of the DOS version.
GNU General Public License v3.0
1.1k stars 141 forks source link

Quicksave during feather fall mode #236

Closed dstarosta closed 3 years ago

dstarosta commented 3 years ago

I added an ability to quick save in feather mode as discussed here: https://forum.princed.org/viewtopic.php?f=126&p=32402

There is now the "Fix quicksave during feather" option that makes the is_feather_fall variable to act as a timer. In debug cheats mode F button now shows the remaining feather fall time similar to the T button for the game timer.

Pause menu now pauses the feather fall music since timer variables do not increment/decrement. When the game continues, the music starts from the beginning until the feather mode timer stops. In my mod I have the music from the correct position but I am using SDLMixer with OGG files. I am not sure how to do this with digi sound streams.

When you restore a quick save saved in feather mode without the fix option enabled, the feather mode does not get enabled to prevent cheating since I can only start it from the beginning.