[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:
megamage
2009-04-27 18:36:10 -05:00
parent f9c4047441
commit 5ac67c27f7
43 changed files with 168 additions and 149 deletions

View File

@@ -3043,7 +3043,7 @@ bool ChatHandler::HandleGameObjectStateCommand(const char* args)
if(state < 0)
gobj->SendObjectDeSpawnAnim(gobj->GetGUID());
else
gobj->SetGoState(state);
gobj->SetGoState((GOState)state);
return true;
}