summaryrefslogtreecommitdiff
path: root/src/map/quest.c
diff options
context:
space:
mode:
authorDastgir <dastgirpojee@rocketmail.com>2015-10-26 09:57:24 +0530
committerDastgir <dastgirpojee@rocketmail.com>2015-10-26 09:57:24 +0530
commite54cab202300a8fc5bc7f7e326f09906cfe8d800 (patch)
tree0771de446fd144cad89a250b7dc67519eaa2ba5b /src/map/quest.c
parent444ff2fa558cff839b1aaf8b369a5bf395dfa0b7 (diff)
parentc956a618cb92b53407a0dc0c999f4cd68e63d536 (diff)
downloadhercules-e54cab202300a8fc5bc7f7e326f09906cfe8d800.tar.gz
hercules-e54cab202300a8fc5bc7f7e326f09906cfe8d800.tar.bz2
hercules-e54cab202300a8fc5bc7f7e326f09906cfe8d800.tar.xz
hercules-e54cab202300a8fc5bc7f7e326f09906cfe8d800.zip
Merge branch 'master' of https://github.com/HerculesWS/Hercules
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;
}