From 5ac67c27f71a7b53fbce92ffdab3adb62b6baf0c Mon Sep 17 00:00:00 2001 From: megamage Date: Mon, 27 Apr 2009 18:36:10 -0500 Subject: [7715] Provided way for scripts set alternative gameobject state for client show. Author: VladimirMangos Also use enum for gsmeobject states. --HG-- branch : trunk --- src/game/InstanceData.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game/InstanceData.cpp') diff --git a/src/game/InstanceData.cpp b/src/game/InstanceData.cpp index 58a5c9d855d..785cea8f38c 100644 --- a/src/game/InstanceData.cpp +++ b/src/game/InstanceData.cpp @@ -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"); } -- cgit v1.2.3