[Performance] Adjust HP marquee call checks

This commit is contained in:
Akkadius committed 2017-03-28 15:49:13 -05:00
1 parent 138ad99eea
commit a06d5fab89
3 files changed
+3 -5

No files matched your search

+2 -1
View File
@@ -1381,7 +1381,8 @@ void Mob::SendHPUpdate(bool skip_self)
// send to self - we need the actual hps here
if(IsClient() && (!skip_self || dospam)) {
this->CastToClient()->SendHPUpdateMarquee();
if (RuleB(Character, MarqueeHPUpdates))
this->CastToClient()->SendHPUpdateMarquee();
auto hp_app2 = new EQApplicationPacket(OP_HPUpdate, sizeof(SpawnHPUpdate_Struct));
SpawnHPUpdate_Struct* ds = (SpawnHPUpdate_Struct*)hp_app2->pBuffer;