Skip to content

Commit 6a6232a

Browse files
authored
Merge pull request #10044 from WinterSolstice8/npc_look_size_stuff
[core] Don't clobber look string data for entities that dont have it
2 parents 5d1bc20 + 653d23a commit 6a6232a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/map/packets/entity_update.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,8 @@ void CEntityUpdatePacket::updateWith(CBaseEntity* PEntity, ENTITYUPDATE type, ui
587587
std::memcpy(start, name.c_str(), maxLength);
588588
}
589589

590-
if (packet->SendFlg.General)
590+
// Don't overwrite data for model size and hitbox size from look string on NPCs
591+
if (packet->SendFlg.General && (PEntity->objtype == TYPE_PC || PEntity->objtype == TYPE_PET || PEntity->objtype == TYPE_MOB))
591592
{
592593
packet->Flags1.GraphSize = PEntity->modelSize;
593594
// For some reason, SE reused a player struct where this "g" value is the hitbox size.

0 commit comments

Comments
 (0)