From 19010df80fca2389107ba161afcb6e7a733b4a61 Mon Sep 17 00:00:00 2001 From: Spp Date: Mon, 10 May 2010 12:48:35 +0200 Subject: Force animprogress for GameObjects Type FishNode Original patch by beberlescaraber --HG-- branch : trunk --- src/game/GameObject.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/game/GameObject.cpp b/src/game/GameObject.cpp index a4d31a19c67..5a5b28d85b9 100644 --- a/src/game/GameObject.cpp +++ b/src/game/GameObject.cpp @@ -192,8 +192,6 @@ bool GameObject::Create(uint32 guidlow, uint32 name_id, Map *map, uint32 phaseMa SetGoType(GameobjectTypes(goinfo->type)); SetGoArtKit(0); // unknown what this is - SetGoAnimProgress(animprogress); - SetByteValue(GAMEOBJECT_BYTES_1, 2, artKit); switch(goinfo->type) @@ -206,6 +204,13 @@ bool GameObject::Create(uint32 guidlow, uint32 name_id, Map *map, uint32 phaseMa SetUInt32Value(GAMEOBJECT_LEVEL, goinfo->transport.pause); if (goinfo->transport.startOpen) SetGoState(GO_STATE_ACTIVE); + SetGoAnimProgress(animprogress); + break; + case GAMEOBJECT_TYPE_FISHINGNODE: + SetGoAnimProgress(0); + break; + default: + SetGoAnimProgress(animprogress); break; } -- cgit v1.2.3