summaryrefslogtreecommitdiff
path: root/src/map/pc.h
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-10-27 18:02:20 -0200
committershennetsind <ind@henn.et>2013-10-27 18:02:20 -0200
commit6cec6e91de4f7490a48a5a145ab3d54efc7fc2c1 (patch)
treed3accf00aab232dea6c2b1f4104d3b50d6485f59 /src/map/pc.h
parent830aa82793adc2a009e12d9eb9eda20e29a0c9a8 (diff)
downloadhercules-6cec6e91de4f7490a48a5a145ab3d54efc7fc2c1.tar.gz
hercules-6cec6e91de4f7490a48a5a145ab3d54efc7fc2c1.tar.bz2
hercules-6cec6e91de4f7490a48a5a145ab3d54efc7fc2c1.tar.xz
hercules-6cec6e91de4f7490a48a5a145ab3d54efc7fc2c1.zip
Performance Improvement: hpmeter
whenever a character's hp was modified (e.g. damage/heal), clif_hpmeter would look for nearby characters with the PC_PERM_VIEW_HPMETER permission (foreachinarea operation), and since most of the time there isn't such a char nearby it would needlessly consume processing power, now hpmeter is only triggered when there are actual need (when a character with such capabilities is within the map). as little as this may look like, its a mega boost for damage-intensive areas e.g. woe, whereas a single AoE damaging 10 people would, without this, trigger foreachinarea 10 times one very hit. Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/pc.h')
-rw-r--r--src/map/pc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/pc.h b/src/map/pc.h
index 32c1e4ee0..fdcf395a7 100644
--- a/src/map/pc.h
+++ b/src/map/pc.h
@@ -177,6 +177,7 @@ struct map_session_data {
unsigned int workinprogress : 3; // 1 = disable skill/item, 2 = disable npc interaction, 3 = disable both
unsigned int hold_recalc : 1;
unsigned int snovice_call_flag : 3; //Summon Angel (stage 1~3)
+ unsigned int hpmeter_visible : 1;
} state;
struct {
unsigned char no_weapon_damage, no_magic_damage, no_misc_damage;
@@ -545,7 +546,7 @@ enum equip_pos {
EQP_COSTUME_HEAD_TOP = 0x000400, //1024
EQP_COSTUME_HEAD_MID = 0x000800, //2048
EQP_COSTUME_HEAD_LOW = 0x001000, //4096
- EQP_COSTUME_GARMENT = 0x002000, //8192
+ EQP_COSTUME_GARMENT = 0x002000, //8192
//UNUSED_COSTUME_FLOOR = 0x004000, //16384
EQP_AMMO = 0x008000, //32768
EQP_SHADOW_ARMOR = 0x010000, //65536