mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
missing changes from my prev. commit
This commit is contained in:
parent
df0715284f
commit
d62061f423
1 changed files with 3 additions and 1 deletions
|
|
@ -1885,7 +1885,9 @@ void WorldObject::SetActiveObjectState(bool active)
|
|||
if (m_isActiveObject == active || (isType(TYPEMASK_PLAYER) && !active)) // player shouldn't became inactive, never
|
||||
return;
|
||||
|
||||
if (IsInWorld())
|
||||
if (IsInWorld() && !isType(TYPEMASK_PLAYER))
|
||||
// player's update implemented in a different from other active worldobject's way
|
||||
// it's considired to use generic way in future
|
||||
{
|
||||
if (isActiveObject() && !active)
|
||||
GetMap()->RemoveFromActive(this);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue