mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 17:49:43 +01:00
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:
parent
b8fdbe53b9
commit
e6b1b54214
1 changed files with 8 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue