mirror of
https://github.com/mangosfour/server.git
synced 2025-12-17 07:37:03 +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
|
if (m_isActiveObject == active || (isType(TYPEMASK_PLAYER) && !active)) // player shouldn't became inactive, never
|
||||||
return;
|
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)
|
if (isActiveObject() && !active)
|
||||||
GetMap()->RemoveFromActive(this);
|
GetMap()->RemoveFromActive(this);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue