From dbfde2c5fbd23efe21b611440ddac7c5eb1aff4f Mon Sep 17 00:00:00 2001 From: mekolat Date: Thu, 21 May 2015 15:28:09 -0400 Subject: invert mob hp --- src/map/clif.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/map/clif.cpp b/src/map/clif.cpp index bae0bf1..248f74a 100644 --- a/src/map/clif.cpp +++ b/src/map/clif.cpp @@ -787,10 +787,10 @@ void clif_mob0078(dumb_ptr md, Buffer& buf) fixed_78.pos.y = md->bl_y; fixed_78.pos.dir = md->dir; - fixed_78.gloves_or_part_of_hp = static_cast(hp >> 16); - fixed_78.part_of_guild_id_or_part_of_hp = static_cast(hp & 0xffff); - fixed_78.part_of_guild_id_or_part_of_max_hp = static_cast(max_hp >> 16); - fixed_78.guild_emblem_or_part_of_max_hp = static_cast(max_hp & 0xffff); + fixed_78.gloves_or_part_of_hp = static_cast(hp & 0xffff); + fixed_78.part_of_guild_id_or_part_of_hp = static_cast(hp >> 16); + fixed_78.part_of_guild_id_or_part_of_max_hp = static_cast(max_hp & 0xffff); + fixed_78.guild_emblem_or_part_of_max_hp = static_cast(max_hp >> 16); fixed_78.karma_or_attack_range = battle_get_range(md); buf = create_fpacket<0x0078, 54>(fixed_78); @@ -822,10 +822,10 @@ void clif_mob007b(dumb_ptr md, Buffer& buf) fixed_7b.pos2.x1 = md->to_x; fixed_7b.pos2.y1 = md->to_y; - fixed_7b.gloves_or_part_of_hp = static_cast(hp >> 16); - fixed_7b.part_of_guild_id_or_part_of_hp = static_cast(hp & 0xffff); - fixed_7b.part_of_guild_id_or_part_of_max_hp = static_cast(max_hp >> 16); - fixed_7b.guild_emblem_or_part_of_max_hp = static_cast(max_hp & 0xffff); + fixed_7b.gloves_or_part_of_hp = static_cast(hp & 0xffff); + fixed_7b.part_of_guild_id_or_part_of_hp = static_cast(hp >> 16); + fixed_7b.part_of_guild_id_or_part_of_max_hp = static_cast(max_hp & 0xffff); + fixed_7b.guild_emblem_or_part_of_max_hp = static_cast(max_hp >> 16); fixed_7b.karma_or_attack_range = battle_get_range(md); buf = create_fpacket<0x007b, 60>(fixed_7b); -- cgit v1.2.3-60-g2f50