Add a fast-forward keybind to level debugger

This lets you hold down F to fast-forward the game if you have the level
debugger interface open (with Y) and the game isn't paused.

This is most useful for quickly skipping through cutscenes to test
something.
This commit is contained in:
Misa 2023-12-29 13:51:48 -08:00
parent b8fdbe53b9
commit e6b1b54214
1 changed files with 8 additions and 0 deletions

View File

@ -7503,6 +7503,14 @@ static inline int get_framerate(const int slowdown)
int Game::get_timestep(void)
{
if ((gamestate == GAMEMODE || (gamestate == TELEPORTERMODE && !useteleporter)) &&
level_debugger::is_active() &&
!level_debugger::is_pausing() &&
key.isDown(SDLK_f))
{
return 1;
}
switch (gamestate)
{
case GAMEMODE: