From e4d0e0553249ee7f6454497b79b093f1acbb611b Mon Sep 17 00:00:00 2001 From: Jedzkie Date: Tue, 18 Apr 2017 18:12:38 +0800 Subject: Added the correct PACKETVER Date for MSG_NPC_WORK_IN_PROGRESS message. --- src/map/pc.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/map/pc.c') diff --git a/src/map/pc.c b/src/map/pc.c index e9855c16d..fc2d57c7c 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -5019,10 +5019,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; } -- cgit v1.2.3-70-g09d2