diff options
author | megamage <none@none> | 2009-02-15 13:03:28 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-02-15 13:03:28 -0600 |
commit | 0e757d8b697cdaa6294245551ec6468d9e6dd07a (patch) | |
tree | 4a8d7dac82b11083605a23ff2e357dea1dd3fdef /src | |
parent | b66d68ceaeecc01b6a72b8480abe61f6c3e92f7e (diff) |
*Fix knockback angle calculation.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/SpellEffects.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index da2471886e5..61064274b8c 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -5950,8 +5950,8 @@ void Spell::EffectKnockBack(uint32 i) float dy = unitTarget->GetPositionY() - y; float dist = sqrt((dx*dx) + (dy*dy)); - float vsin = dx / dist; - float vcos = dy / dist; + float vcos = dx / dist; + float vsin = dy / dist; WorldPacket data(SMSG_MOVE_KNOCK_BACK, (8+4+4+4+4+4)); data.append(unitTarget->GetPackGUID()); |