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/Level2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game/Level2.cpp') diff --git a/src/game/Level2.cpp b/src/game/Level2.cpp index a748cf9cd3d..1d019e3dfbb 100644 --- a/src/game/Level2.cpp +++ b/src/game/Level2.cpp @@ -786,7 +786,7 @@ bool ChatHandler::HandleGameObjectAddCommand(const char* args) GameObject* pGameObj = new GameObject; uint32 db_lowGUID = objmgr.GenerateLowGuid(HIGHGUID_GAMEOBJECT); - if(!pGameObj->Create(db_lowGUID, goI->id, map, chr->GetPhaseMaskForSpawn(), x, y, z, o, 0.0f, 0.0f, 0.0f, 0.0f, 0, 1)) + if(!pGameObj->Create(db_lowGUID, goI->id, map, chr->GetPhaseMaskForSpawn(), x, y, z, o, 0.0f, 0.0f, 0.0f, 0.0f, 0, GO_STATE_READY)) { delete pGameObj; return false; -- cgit v1.2.3