if wait > 0 exit; wait = 5 menuchoice -= 1 if menuchoice < 0 menuchoice = 3 sound_play(snd_menuselect)