From 1013fd3227f78a0b02c121a36a6f66fdcbd75203 Mon Sep 17 00:00:00 2001 From: Inkfish Date: Fri, 21 Aug 2009 07:16:40 +0000 Subject: Fixed the wrong packet length makes client choke when add_quest packets are sent. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14019 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/quest.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'src/map/quest.c') diff --git a/src/map/quest.c b/src/map/quest.c index 9c1da6aa5..386a030b9 100644 --- a/src/map/quest.c +++ b/src/map/quest.c @@ -103,10 +103,10 @@ int quest_add(TBL_PC * sd, int quest_id) sd->num_quests++; sd->avail_quests++; + clif_send_quest_info(sd, &sd->quest_log[i]); + if( save_settings&64 ) chrif_save(sd,0); - else - intif_quest_save(sd); return 0; } @@ -151,11 +151,10 @@ int quest_change(TBL_PC * sd, int qid1, int qid2) sd->quest_log[i].num_objectives = count; clif_send_quest_delete(sd, qid1); + clif_send_quest_info(sd, &sd->quest_log[i]); if( save_settings&64 ) chrif_save(sd,0); - else - intif_quest_save(sd); return 0; } @@ -182,8 +181,6 @@ int quest_delete(TBL_PC * sd, int quest_id) if( save_settings&64 ) chrif_save(sd,0); - else - intif_quest_save(sd); return 0; } @@ -242,8 +239,6 @@ int quest_update_status(TBL_PC * sd, int quest_id, quest_state status) if( save_settings&64 ) chrif_save(sd,0); - else - intif_quest_save(sd); return 0; } -- cgit v1.2.3-60-g2f50