Allow credits to be exited by pressing Escape.

This commit is contained in:
Steve 2016-05-29 15:59:53 +01:00
parent 2e7d0bb874
commit a9fb850f05
1 changed files with 3 additions and 3 deletions

View File

@ -135,8 +135,8 @@ static void loadCredits(void)
limitTextWidth(0); limitTextWidth(0);
/* the music that plays over the credits is 2m 44s, so scroll credits roughly inline with that */ /* the music that plays over the credits is 2m 44s, so scroll credits roughly inline with that (plus 2 seconds) */
timeout = ((2 * 60) + 55) * FPS; timeout = ((2 * 60) + 46) * FPS;
creditSpeed = y; creditSpeed = y;
creditSpeed /= timeout; creditSpeed /= timeout;
@ -149,7 +149,7 @@ static void handleKeyboard(void)
{ {
if (app.keyboard[SDL_SCANCODE_ESCAPE]) if (app.keyboard[SDL_SCANCODE_ESCAPE])
{ {
timeout = 0;
} }
} }