Allow skipping the credits with the fire and alt fire buttons.
This commit is contained in:
parent
d4ff9213b5
commit
3559106ff5
|
@ -643,7 +643,7 @@ void gameover()
|
||||||
{
|
{
|
||||||
getPlayerInput();
|
getPlayerInput();
|
||||||
|
|
||||||
if ((engine.keyState[KEY_FIRE] || engine.keyState[KEY_ALTFIRE]))
|
if (engine.keyState[KEY_FIRE] || engine.keyState[KEY_ALTFIRE])
|
||||||
break;
|
break;
|
||||||
|
|
||||||
updateScreen();
|
updateScreen();
|
||||||
|
@ -705,6 +705,8 @@ void doCredits()
|
||||||
engine.done = 0;
|
engine.done = 0;
|
||||||
|
|
||||||
engine.keyState[KEY_ESCAPE] = 0;
|
engine.keyState[KEY_ESCAPE] = 0;
|
||||||
|
engine.keyState[KEY_FIRE] = 0;
|
||||||
|
engine.keyState[KEY_ALTFIRE] = 0;
|
||||||
flushInput();
|
flushInput();
|
||||||
|
|
||||||
while (true)
|
while (true)
|
||||||
|
@ -713,7 +715,8 @@ void doCredits()
|
||||||
unBuffer();
|
unBuffer();
|
||||||
|
|
||||||
getPlayerInput();
|
getPlayerInput();
|
||||||
if (engine.keyState[KEY_ESCAPE])
|
if (engine.keyState[KEY_ESCAPE] || engine.keyState[KEY_FIRE] ||
|
||||||
|
engine.keyState[KEY_ALTFIRE])
|
||||||
break;
|
break;
|
||||||
|
|
||||||
float speed = 0.5;
|
float speed = 0.5;
|
||||||
|
|
Loading…
Reference in New Issue