static int course_action(int i) { if (course_exists(i)) { course_goto(i); goto_state(&st_party); } if (i == COURSE_BACK) goto_state(&st_title); return 1; }
static int course_action(int i) { audio_play(AUD_MENU, 1.0f); if (course_exists(i)) { course_goto(i); goto_state(&st_party); } if (i == COURSE_BACK) goto_state(&st_title); return 1; }
void course_rand(void) { course_goto(rand() % count); hole_goto(rand() % curr_count(), 4); }