summaryrefslogtreecommitdiff
path: root/src/map/quest.c
diff options
context:
space:
mode:
authorossi0110 <maikkempkes@alice.de>2015-10-21 12:24:32 +0200
committerossi0110 <maikkempkes@alice.de>2015-10-21 20:58:40 +0200
commitce6e0f537fe2f513bb8881d07b37d0d6211e654b (patch)
treec7b3c8b7f39204de6e2ef5990cc1a754405e45f0 /src/map/quest.c
parentb993924a4b5e82f3961d6b5a579c0204c9e36809 (diff)
downloadhercules-ce6e0f537fe2f513bb8881d07b37d0d6211e654b.tar.gz
hercules-ce6e0f537fe2f513bb8881d07b37d0d6211e654b.tar.bz2
hercules-ce6e0f537fe2f513bb8881d07b37d0d6211e654b.tar.xz
hercules-ce6e0f537fe2f513bb8881d07b37d0d6211e654b.zip
Fixed Typos (+1 squashed commits)
Squashed commits: [18d0374] Fixed Quest Log Packet for 2014-10-22 + Clients Added log Folder to be able to capture Map Server Logs see map-server.conf for it Added save folder to be able to dump unknown packets
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;
}