diff options
author | Inkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-08-21 07:16:40 +0000 |
---|---|---|
committer | Inkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-08-21 07:16:40 +0000 |
commit | 1013fd3227f78a0b02c121a36a6f66fdcbd75203 (patch) | |
tree | 53421a13c87309aa56c4dd87dbaf3cc0917d7b74 /src/map/quest.c | |
parent | ad8b21eed7219a457340278ed39642578d48b2eb (diff) | |
download | hercules-1013fd3227f78a0b02c121a36a6f66fdcbd75203.tar.gz hercules-1013fd3227f78a0b02c121a36a6f66fdcbd75203.tar.bz2 hercules-1013fd3227f78a0b02c121a36a6f66fdcbd75203.tar.xz hercules-1013fd3227f78a0b02c121a36a6f66fdcbd75203.zip |
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
Diffstat (limited to 'src/map/quest.c')
-rw-r--r-- | src/map/quest.c | 11 |
1 files changed, 3 insertions, 8 deletions
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; } |