summaryrefslogtreecommitdiff
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
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>
-rw-r--r--src/localplayer.cpp2
-rw-r--r--src/player.cpp2
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)
{