/** * Perform requested action from selected homunculus menu * @param sd * @param type */ void hom_menu(struct map_session_data *sd, int type) { nullpo_retv(sd); if (sd->hd == NULL) return; switch(type) { case 0: break; case 1: hom_food(sd, sd->hd); break; case 2: hom_delete(sd->hd, -1); break; default: ShowError("hom_menu : unknown menu choice : %d\n", type); break; } }
int hom_menu(struct map_session_data *sd,int menunum) { nullpo_ret(sd); if (sd->hd == NULL) return 1; switch(menunum) { case 0: break; case 1: hom_food(sd, sd->hd); break; case 2: hom_delete(sd->hd, -1); break; default: ShowError("hom_menu : unknown menu choice : %d\n", menunum) ; break; } return 0; }