From cccb740817c080b8c0d2ec060458a138883da474 Mon Sep 17 00:00:00 2001 From: aleos89 Date: Tue, 28 Jun 2016 09:27:25 -0400 Subject: [PATCH] Adjusted atcommand showexp display (fixes #1401) * Follow up to d2bbd91. * When no base or job EXP is given the message won't display. --- src/map/pc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/map/pc.c b/src/map/pc.c index b9604fcf95..d5fecb5c73 100755 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -6577,7 +6577,7 @@ void pc_gainexp(struct map_session_data *sd, struct block_list *src, unsigned in if (flag&2) clif_displayexp(sd, (flag&8) ? 0 : job_exp, SP_JOBEXP, exp_flag&1, false); - if (sd->state.showexp) + if (sd->state.showexp && (base_exp || job_exp)) pc_gainexp_disp(sd, base_exp, nextb, job_exp, nextj, false); } @@ -6605,7 +6605,7 @@ void pc_lostexp(struct map_session_data *sd, unsigned int base_exp, unsigned int clif_updatestatus(sd, SP_JOBEXP); } - if (sd->state.showexp) + if (sd->state.showexp && (base_exp || job_exp)) pc_gainexp_disp(sd, base_exp, pc_nextbaseexp(sd), job_exp, pc_nextjobexp(sd), true); }