From e7c09d41c6106a0939f981162df695b224a1f6f6 Mon Sep 17 00:00:00 2001 From: hemagx Date: Sun, 20 Dec 2015 18:16:39 +0200 Subject: Fixed showing HP bar for monsters even if disabled on 2015 clients and onward. Fixes #744 --- src/map/clif.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/map/clif.c b/src/map/clif.c index 6fb7dd04e..63a36fa62 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -1043,7 +1043,7 @@ void clif_set_unit_idle(struct block_list* bl, struct map_session_data *tsd, enu p.font = (sd) ? sd->status.font : 0; #endif #if PACKETVER >= 20150000 //actual 20120221 - if( bl->type == BL_MOB ) { + if (bl->type == BL_MOB && battle_config.show_monster_hp_bar) { p.maxHP = status_get_max_hp(bl); p.HP = status_get_hp(bl); p.isBoss = ( ((TBL_MOB*)bl)->spawn && ((TBL_MOB*)bl)->spawn->state.boss ) ? 1 : 0; @@ -1174,7 +1174,7 @@ void clif_spawn_unit(struct block_list* bl, enum send_target target) { p.font = (sd) ? sd->status.font : 0; #endif #if PACKETVER >= 20150000 //actual 20120221 - if( bl->type == BL_MOB ) { + if (bl->type == BL_MOB && battle_config.show_monster_hp_bar) { p.maxHP = status_get_max_hp(bl); p.HP = status_get_hp(bl); p.isBoss = ( ((TBL_MOB*)bl)->spawn && ((TBL_MOB*)bl)->spawn->state.boss ) ? 1 : 0; @@ -1256,7 +1256,7 @@ void clif_set_unit_walking(struct block_list* bl, struct map_session_data *tsd, p.font = (sd) ? sd->status.font : 0; #endif #if PACKETVER >= 20150000 //actual 20120221 - if( bl->type == BL_MOB ) { + if (bl->type == BL_MOB && battle_config.show_monster_hp_bar) { p.maxHP = status_get_max_hp(bl); p.HP = status_get_hp(bl); p.isBoss = ( ((TBL_MOB*)bl)->spawn && ((TBL_MOB*)bl)->spawn->state.boss ) ? 1 : 0; -- cgit v1.2.3-70-g09d2