diff options
author | Haruna <haru@dotalux.com> | 2015-10-24 15:49:18 +0200 |
---|---|---|
committer | Haruna <haru@dotalux.com> | 2015-10-24 15:49:18 +0200 |
commit | be5c38f5bf7f316eebd301f91fde888dffd844e6 (patch) | |
tree | 518199824d310cc1f57cdccb74cf1e57dc1660e5 /src/map/quest.c | |
parent | 06d79297d782bb14f16aacdbfbef230e81219fae (diff) | |
parent | ce6e0f537fe2f513bb8881d07b37d0d6211e654b (diff) | |
download | hercules-be5c38f5bf7f316eebd301f91fde888dffd844e6.tar.gz hercules-be5c38f5bf7f316eebd301f91fde888dffd844e6.tar.bz2 hercules-be5c38f5bf7f316eebd301f91fde888dffd844e6.tar.xz hercules-be5c38f5bf7f316eebd301f91fde888dffd844e6.zip |
Merge pull request #811 from ossi0110/master
Fixed Quest Log Packet for 2014-10-22 + Clients
Diffstat (limited to 'src/map/quest.c')
-rw-r--r-- | src/map/quest.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/map/quest.c b/src/map/quest.c index 790e96253..e4216b18e 100644 --- a/src/map/quest.c +++ b/src/map/quest.c @@ -59,18 +59,24 @@ struct quest_db *quest_db(int quest_id) { * @param sd Player's data * @return 0 in case of success, nonzero otherwise (i.e. the player has no quests) */ -int quest_pc_login(TBL_PC *sd) { +int quest_pc_login(TBL_PC *sd) +{ +#if PACKETVER < 20141022 int i; +#endif if(sd->avail_quests == 0) return 1; clif->quest_send_list(sd); + +#if PACKETVER < 20141022 clif->quest_send_mission(sd); for( i = 0; i < sd->avail_quests; i++ ) { // TODO[Haru]: is this necessary? Does quest_send_mission not take care of this? clif->quest_update_objective(sd, &sd->quest_log[i]); } +#endif return 0; } |