From 3559106ff5c1d7c7bfa7c1c7f279cc89225f6f1e Mon Sep 17 00:00:00 2001 From: onpon4 Date: Wed, 20 May 2015 10:53:10 -0400 Subject: [PATCH] Allow skipping the credits with the fire and alt fire buttons. --- src/title.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/title.cpp b/src/title.cpp index 5fb2b9b..be9d6d6 100644 --- a/src/title.cpp +++ b/src/title.cpp @@ -643,7 +643,7 @@ void gameover() { getPlayerInput(); - if ((engine.keyState[KEY_FIRE] || engine.keyState[KEY_ALTFIRE])) + if (engine.keyState[KEY_FIRE] || engine.keyState[KEY_ALTFIRE]) break; updateScreen(); @@ -705,6 +705,8 @@ void doCredits() engine.done = 0; engine.keyState[KEY_ESCAPE] = 0; + engine.keyState[KEY_FIRE] = 0; + engine.keyState[KEY_ALTFIRE] = 0; flushInput(); while (true) @@ -713,7 +715,8 @@ void doCredits() unBuffer(); getPlayerInput(); - if (engine.keyState[KEY_ESCAPE]) + if (engine.keyState[KEY_ESCAPE] || engine.keyState[KEY_FIRE] || + engine.keyState[KEY_ALTFIRE]) break; float speed = 0.5;