Core/Gameobject: Rename GO_STATE_ACTIVE_ALTERNATIVE to GO_STATE_DESTROYED
Port From (https://github.com/TrinityCore/TrinityCore/commit/5e267dda7179daad3810ccea5a0e0acee8d97557)
This commit is contained in:
@@ -87,7 +87,7 @@ namespace Framework.Constants
|
||||
{
|
||||
Active = 0,
|
||||
Ready = 1,
|
||||
ActiveAlternative = 2,
|
||||
Destroyed = 2,
|
||||
TransportActive = 24,
|
||||
TransportStopped = 25,
|
||||
Max = 3
|
||||
|
||||
@@ -1462,7 +1462,7 @@ namespace Game.Entities
|
||||
RemoveFlag(GameObjectFlags.InUse);
|
||||
|
||||
if (GetGoState() == GameObjectState.Ready) //if closed . open
|
||||
SetGoState(alternative ? GameObjectState.ActiveAlternative : GameObjectState.Active);
|
||||
SetGoState(alternative ? GameObjectState.Destroyed : GameObjectState.Active);
|
||||
else //if open . close
|
||||
SetGoState(GameObjectState.Ready);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user