summaryrefslogtreecommitdiff
path: root/src/map/quest.c
diff options
context:
space:
mode:
authorHaruna <haru@dotalux.com>2015-10-24 15:49:18 +0200
committerHaruna <haru@dotalux.com>2015-10-24 15:49:18 +0200
commitbe5c38f5bf7f316eebd301f91fde888dffd844e6 (patch)
tree518199824d310cc1f57cdccb74cf1e57dc1660e5 /src/map/quest.c
parent06d79297d782bb14f16aacdbfbef230e81219fae (diff)
parentce6e0f537fe2f513bb8881d07b37d0d6211e654b (diff)
downloadhercules-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.c8
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;
}