diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/map/achievement.c | 5 | ||||
-rw-r--r-- | src/map/clif.c | 2 | ||||
-rw-r--r-- | src/map/packets_struct.h | 2 |
3 files changed, 5 insertions, 4 deletions
diff --git a/src/map/achievement.c b/src/map/achievement.c index 1fb513ea0..2450cfb49 100644 --- a/src/map/achievement.c +++ b/src/map/achievement.c @@ -1021,7 +1021,8 @@ static bool achievement_check_title(struct map_session_data *sd, int title_id) { * @param sd session data * @param ad achievement data */ -static void achievement_get_rewards(struct map_session_data *sd, const struct achievement_data *ad) { +static void achievement_get_rewards(struct map_session_data *sd, const struct achievement_data *ad) +{ int i = 0; struct achievement *ach = NULL; @@ -1062,8 +1063,8 @@ static void achievement_get_rewards(struct map_session_data *sd, const struct ac VECTOR_PUSH(sd->title_ids, ad->rewards.title_id); clif->achievement_send_list(sd->fd, sd); } else { - clif->achievement_reward_ack(sd->fd, sd, ad); clif->achievement_send_update(sd->fd, sd, ad); // send update. + clif->achievement_reward_ack(sd->fd, sd, ad); } } diff --git a/src/map/clif.c b/src/map/clif.c index 1bf77399c..cf9487fe0 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -20638,7 +20638,7 @@ static void clif_achievement_reward_ack(int fd, struct map_session_data *sd, con nullpo_retv(ad); p.packet_id = achievementRewardAckType; - p.received = 1; + p.failed = 0; p.ach_id = ad->id; clif->send(&p, packet_len(achievementRewardAckType), &sd->bl, SELF); diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h index af76a66d7..e23822e31 100644 --- a/src/map/packets_struct.h +++ b/src/map/packets_struct.h @@ -2722,7 +2722,7 @@ struct packet_achievement_update { struct packet_achievement_reward_ack { uint16 packet_id; - uint8 received; + uint8 failed; uint32 ach_id; } __attribute__((packed)); |