diff options
author | stfx <stfx@hotmail.de> | 2011-10-07 12:05:31 +0300 |
---|---|---|
committer | stfx <stfx@hotmail.de> | 2011-10-07 12:05:31 +0300 |
commit | 9a7805fd881146e0450f91c9c91d210f27c4ad02 (patch) | |
tree | c1abc092a7c7f5f154a776068c3ca7a220372d3b /src | |
parent | 51edc0620008975dd19e2666dc5f77bb5cbee877 (diff) |
Fix sending custom gameobject animation of gameobjects which have a time_to_restore = 0
Diffstat (limited to 'src')
-rwxr-xr-x | src/server/game/Entities/GameObject/GameObject.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/server/game/Entities/GameObject/GameObject.cpp b/src/server/game/Entities/GameObject/GameObject.cpp index 4ec77e38bcf..d834badc9dc 100755 --- a/src/server/game/Entities/GameObject/GameObject.cpp +++ b/src/server/game/Entities/GameObject/GameObject.cpp @@ -1211,15 +1211,13 @@ void GameObject::Use(Unit* user) SetFlag(GAMEOBJECT_FLAGS, GO_FLAG_IN_USE); SetLootState(GO_ACTIVATED); - uint32 time_to_restore = info->GetAutoCloseTime(); - // this appear to be ok, however others exist in addition to this that should have custom (ex: 190510, 188692, 187389) - if (time_to_restore && info->goober.customAnim) + if (info->goober.customAnim) SendCustomAnim(GetGoAnimProgress()); else SetGoState(GO_STATE_ACTIVE); - m_cooldownTime = time(NULL) + time_to_restore; + m_cooldownTime = time(NULL) + info->GetAutoCloseTime(); // cast this spell later if provided spellId = info->goober.spellId; |