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; }
static void course_stick(int id, int a, int v) { int jd; if ((jd = shared_stick_basic(id, a, v))) { int i = gui_token(jd); if (course_exists(i)) { gui_set_image(shot_id, course_shot(i)); gui_set_multi(desc_id, _(course_desc(i))); } gui_pulse(jd, 1.2f); } }
static void course_point(int id, int x, int y, int dx, int dy) { int jd; if ((jd = gui_point(id, x, y))) { int i = gui_token(jd); if (course_exists(i)) { gui_set_image(shot_id, course_shot(i)); gui_set_multi(desc_id, _(course_desc(i))); } gui_pulse(jd, 1.2f); } }
const char *course_shot(int i) { return course_exists(i) ? course_v[i].shot : course_v[0].shot; }
const char *course_desc(int i) { return course_exists(i) ? course_v[i].desc : ""; }