diff options
| author | megamage <none@none> | 2009-03-13 18:48:53 -0600 |
|---|---|---|
| committer | megamage <none@none> | 2009-03-13 18:48:53 -0600 |
| commit | a5882ee84afb8484b23cbeda3c5e4ab130574449 (patch) | |
| tree | 8b713507200ffdc21931a9566212041fe256de55 /src/game/Creature.cpp | |
| parent | 664fb612b4f87539a43632e31901e3b93f7aa3a0 (diff) | |
| parent | 62cdd39279e573f99bc49db45a043bd057372afc (diff) | |
*Merge.
*"Fix Glowing Blood" is not merged. Outdated patch?
--HG--
branch : trunk
Diffstat (limited to 'src/game/Creature.cpp')
| -rw-r--r-- | src/game/Creature.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp index 115906e94a3..d31e6dec1a1 100644 --- a/src/game/Creature.cpp +++ b/src/game/Creature.cpp @@ -478,7 +478,12 @@ void Creature::Update(uint32 diff) break; // if creature is charmed, switch to charmed AI - UpdateCharmAI(); + if(NeedChangeAI) + { + UpdateCharmAI(); + NeedChangeAI = false; + IsAIEnabled = true; + } if(!IsInEvadeMode() && IsAIEnabled) { @@ -1613,9 +1618,6 @@ void Creature::setDeathState(DeathState s) if (canFly() && FallGround()) return; - - if(!IsStopped()) - StopMoving(); } Unit::setDeathState(s); |
