diff options
author | Ira Rice <irarice@gmail.com> | 2009-03-02 19:16:27 -0700 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-03-02 19:16:27 -0700 |
commit | a79d05b01d4a2dc639e6d3a5b7ddd508e64d3511 (patch) | |
tree | 19955d5cc0c651ea62b8eeba69762f0ff722d693 | |
parent | 1d7b4c4640635c809feca83e76b1aa62109c0707 (diff) | |
download | Mana-a79d05b01d4a2dc639e6d3a5b7ddd508e64d3511.tar.gz Mana-a79d05b01d4a2dc639e6d3a5b7ddd508e64d3511.tar.bz2 Mana-a79d05b01d4a2dc639e6d3a5b7ddd508e64d3511.tar.xz Mana-a79d05b01d4a2dc639e6d3a5b7ddd508e64d3511.zip |
Cut down on constant streaming of attacks. Attacks from players now only
occur on each swing action.
Signed-off-by: Ira Rice <irarice@gmail.com>
-rw-r--r-- | src/localplayer.cpp | 2 | ||||
-rw-r--r-- | src/player.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp index bcf3fb15..2607b460 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -138,7 +138,7 @@ void LocalPlayer::logic() if (mEquippedWeapon) particleEffect = mEquippedWeapon->getParticleEffect(); - if (!particleEffect.empty() && mParticleEffects) + if (!particleEffect.empty() && mParticleEffects && mFrame == 1) { switch (mDirection) { diff --git a/src/player.cpp b/src/player.cpp index 16f810ad..61e91613 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -108,7 +108,7 @@ void Player::logic() if (mEquippedWeapon) particleEffect = mEquippedWeapon->getParticleEffect(); - if (!particleEffect.empty() && mParticleEffects) + if (!particleEffect.empty() && mParticleEffects && mFrame == 1) { switch (mDirection) { |