diff options
author | Spp <none@none> | 2010-05-10 12:48:35 +0200 |
---|---|---|
committer | Spp <none@none> | 2010-05-10 12:48:35 +0200 |
commit | 19010df80fca2389107ba161afcb6e7a733b4a61 (patch) | |
tree | b979662be59c317640c146f8ce382b5b7ed053ea /src | |
parent | 758faad1caedcdbebd115d6425ce3078fc717887 (diff) |
Force animprogress for GameObjects Type FishNode
Original patch by beberlescaraber
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/GameObject.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
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; } |