Fix some issues with game object create according to last patch. Thx to NoFantasy and DearScorpion

--HG--
branch : trunk
This commit is contained in:
Kudlaty
2009-09-04 05:11:27 +02:00
parent 2465ef00a2
commit 8c255266e7
2 changed files with 18 additions and 8 deletions

View File

@@ -173,15 +173,16 @@ bool GameObject::Create(uint32 guidlow, uint32 name_id, Map *map, uint32 phaseMa
SetUInt32Value(GAMEOBJECT_FACTION, goinfo->faction);
SetUInt32Value(GAMEOBJECT_FLAGS, goinfo->flags);
SetUInt16Value(GAMEOBJECT_DYNAMIC, 1, uint16(-1));
SetEntry(goinfo->id);
SetUInt32Value(GAMEOBJECT_DISPLAYID, goinfo->displayId);
// GAMEOBJECT_BYTES_1, index at 0, 1, 2 and 3
SetGoState(go_state);
SetGoType(GameobjectTypes(goinfo->type));
SetGoArtKit(0); // unknown what this is
SetGoAnimProgress(animprogress);
SetByteValue(GAMEOBJECT_BYTES_1, 2, artKit);