summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-03-02 19:16:27 -0700
committerIra Rice <irarice@gmail.com>2009-03-02 19:16:27 -0700
commita79d05b01d4a2dc639e6d3a5b7ddd508e64d3511 (patch)
tree19955d5cc0c651ea62b8eeba69762f0ff722d693 /src/localplayer.cpp
parent1d7b4c4640635c809feca83e76b1aa62109c0707 (diff)
downloadmana-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>
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r--src/localplayer.cpp2
1 files changed, 1 insertions, 1 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)
{