summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2017-04-25 16:17:10 +0200
committerGitHub <noreply@github.com>2017-04-25 16:17:10 +0200
commit89ffb3db746b016ea1cc12ef2f148152ed280172 (patch)
tree8b537619dd8b5b8add45b99dc5e36433a49eab3b /src/map/pc.c
parentbef73e430775667740df6f3db25bb810ac50c31b (diff)
parente4d0e0553249ee7f6454497b79b093f1acbb611b (diff)
downloadhercules-89ffb3db746b016ea1cc12ef2f148152ed280172.tar.gz
hercules-89ffb3db746b016ea1cc12ef2f148152ed280172.tar.bz2
hercules-89ffb3db746b016ea1cc12ef2f148152ed280172.tar.xz
hercules-89ffb3db746b016ea1cc12ef2f148152ed280172.zip
Merge pull request #1694 from Jedzkie/6-NPCWorkInProgressFix
Added the correct PACKETVER Date for MSG_NPC_WORK_IN_PROGRESS message.
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 6da0bf035..b1203e519 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -5005,10 +5005,11 @@ int pc_useitem(struct map_session_data *sd,int n) {
nullpo_ret(sd);
Assert_ret(n >= 0 && n < MAX_INVENTORY);
- if( sd->npc_id || sd->state.workinprogress&1 ){
- /* TODO: add to clif->messages enum */
-#ifdef RENEWAL
- clif->msgtable(sd, MSG_NPC_WORK_IN_PROGRESS); // TODO look for the client date that has this message.
+ if (sd->npc_id || sd->state.workinprogress & 1) {
+#if PACKETVER >= 20110309
+ clif->msgtable(sd, MSG_NPC_WORK_IN_PROGRESS);
+#else
+ clif->messagecolor_self(fd, COLOR_WHITE, msg_fd(fd, 48));
#endif
return 0;
}