Game Over: now working

This commit is contained in:
dwsJason 2018-08-19 13:24:21 -04:00
parent 83ad296ea3
commit 19ff6fd594

View File

@ -35,7 +35,7 @@ screen_gameover(void)
{ {
static U8 seq = 0; static U8 seq = 0;
static U8 period = 0; static U8 period = 0;
#ifdef GFXST #if defined(GFXST) || defined(GFXGS)
static U32 tm = 0; static U32 tm = 0;
#endif #endif
#ifdef ENABLE_SOUND #ifdef ENABLE_SOUND
@ -55,7 +55,7 @@ screen_gameover(void)
switch (seq) { switch (seq) {
case 1: /* display banner */ case 1: /* display banner */
#ifdef GFXST #if defined(GFXST) || defined(GFXGS)
sysvid_clear(); sysvid_clear();
tm = sys_gettime(); tm = sys_gettime();
#endif #endif
@ -73,7 +73,7 @@ screen_gameover(void)
case 2: /* wait for key pressed */ case 2: /* wait for key pressed */
if (control_status & CONTROL_FIRE) if (control_status & CONTROL_FIRE)
seq = 3; seq = 3;
#ifdef GFXST #if (defined GFXST) || (defined GFXGS)
else if (sys_gettime() - tm > SCREEN_TIMEOUT) else if (sys_gettime() - tm > SCREEN_TIMEOUT)
seq = 4; seq = 4;
#endif #endif