summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authormekolat <mekolat@users.noreply.github.com>2015-05-21 15:28:09 -0400
committermekolat <mekolat@users.noreply.github.com>2015-05-21 15:28:09 -0400
commitdbfde2c5fbd23efe21b611440ddac7c5eb1aff4f (patch)
tree35d196c8f929d3e0b24ba543f3568a853492b3b9 /src/map
parent29ce27e1557404b6cd03eaab2367c5a698e6ab44 (diff)
downloadtmwa-dbfde2c5fbd23efe21b611440ddac7c5eb1aff4f.tar.gz
tmwa-dbfde2c5fbd23efe21b611440ddac7c5eb1aff4f.tar.bz2
tmwa-dbfde2c5fbd23efe21b611440ddac7c5eb1aff4f.tar.xz
tmwa-dbfde2c5fbd23efe21b611440ddac7c5eb1aff4f.zip
invert mob hp
Diffstat (limited to 'src/map')
-rw-r--r--src/map/clif.cpp16
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);