Take out more sleeping

This commit is contained in:
twinaphex 2017-03-24 05:19:52 +01:00
parent 5841dc18c8
commit 8cb90057c2
3 changed files with 0 additions and 18 deletions

View File

@ -72,15 +72,11 @@ screen_gameover(void)
else if (sys_gettime() - tm > SCREEN_TIMEOUT)
seq = 4;
#endif
else
sys_sleep(50);
break;
case 3: /* wait for key released */
if (!(control_status & CONTROL_FIRE))
seq = 4;
else
sys_sleep(50);
break;
}

View File

@ -142,8 +142,6 @@ screen_getname(void)
}
seq = 7;
}
if (seq == 2)
sys_sleep(50);
break;
case 3: /* wait for FIRE released */
@ -170,40 +168,30 @@ screen_getname(void)
seq = 2;
}
}
else
sys_sleep(50);
break;
case 4: /* wait for UP released */
if (!(control_status & CONTROL_UP) ||
sys_gettime() - tm > AUTOREPEAT_TMOUT)
seq = 2;
else
sys_sleep(50);
break;
case 5: /* wait for DOWN released */
if (!(control_status & CONTROL_DOWN) ||
sys_gettime() - tm > AUTOREPEAT_TMOUT)
seq = 2;
else
sys_sleep(50);
break;
case 6: /* wait for LEFT released */
if (!(control_status & CONTROL_LEFT) ||
sys_gettime() - tm > AUTOREPEAT_TMOUT)
seq = 2;
else
sys_sleep(50);
break;
case 7: /* wait for RIGHT released */
if (!(control_status & CONTROL_RIGHT) ||
sys_gettime() - tm > AUTOREPEAT_TMOUT)
seq = 2;
else
sys_sleep(50);
break;
}

View File

@ -122,8 +122,6 @@ screen_introMap(void)
case 4: /* wait for key release */
if (!(control_status & CONTROL_FIRE))
seq = 5;
else
sys_sleep(50); /* .5s */
break;
}