[7715] Provided way for scripts set alternative gameobject state for client show. Author: VladimirMangos
Also use enum for gsmeobject states. --HG-- branch : trunk
This commit is contained in:
1 parent
f9c4047441
commit
5ac67c27f7
43 files changed
+168
-149
No files matched your search
@@ -35,7 +35,7 @@ void InstanceData::HandleGameObject(uint64 GUID, bool open, GameObject *go)
|
||||
if(!go)
|
||||
go = instance->GetGameObject(GUID);
|
||||
if(go)
|
||||
go->SetGoState(open ? 0 : 1);
|
||||
go->SetGoState(open ? GO_STATE_ACTIVE : GO_STATE_READY);
|
||||
else
|
||||
debug_log("TSCR: InstanceData: HandleGameObject failed");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user