diff options
-rw-r--r-- | src/map/clif.cpp | 16 |
1 files 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<mob_data> 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<short>(hp >> 16); - fixed_78.part_of_guild_id_or_part_of_hp = static_cast<short>(hp & 0xffff); - fixed_78.part_of_guild_id_or_part_of_max_hp = static_cast<short>(max_hp >> 16); - fixed_78.guild_emblem_or_part_of_max_hp = static_cast<short>(max_hp & 0xffff); + fixed_78.gloves_or_part_of_hp = static_cast<short>(hp & 0xffff); + fixed_78.part_of_guild_id_or_part_of_hp = static_cast<short>(hp >> 16); + fixed_78.part_of_guild_id_or_part_of_max_hp = static_cast<short>(max_hp & 0xffff); + fixed_78.guild_emblem_or_part_of_max_hp = static_cast<short>(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<mob_data> 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<short>(hp >> 16); - fixed_7b.part_of_guild_id_or_part_of_hp = static_cast<short>(hp & 0xffff); - fixed_7b.part_of_guild_id_or_part_of_max_hp = static_cast<short>(max_hp >> 16); - fixed_7b.guild_emblem_or_part_of_max_hp = static_cast<short>(max_hp & 0xffff); + fixed_7b.gloves_or_part_of_hp = static_cast<short>(hp & 0xffff); + fixed_7b.part_of_guild_id_or_part_of_hp = static_cast<short>(hp >> 16); + fixed_7b.part_of_guild_id_or_part_of_max_hp = static_cast<short>(max_hp & 0xffff); + fixed_7b.guild_emblem_or_part_of_max_hp = static_cast<short>(max_hp >> 16); fixed_7b.karma_or_attack_range = battle_get_range(md); buf = create_fpacket<0x007b, 60>(fixed_7b); |