summaryrefslogtreecommitdiff
path: root/src/player.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-01-27 08:17:31 +0000
committerIra Rice <irarice@gmail.com>2009-01-27 08:51:02 -0700
commit955a7613d1fe116fe5e1da07a222b6849b3c885c (patch)
treebeb1aca75dfd841f59dc20cf0a6063254cb10c83 /src/player.cpp
parent9eb97160a7ea052054cbaa5fdf98352453a51c02 (diff)
downloadmana-955a7613d1fe116fe5e1da07a222b6849b3c885c.tar.gz
mana-955a7613d1fe116fe5e1da07a222b6849b3c885c.tar.bz2
mana-955a7613d1fe116fe5e1da07a222b6849b3c885c.tar.xz
mana-955a7613d1fe116fe5e1da07a222b6849b3c885c.zip
Restore punching animation after weapon removal
Diffstat (limited to 'src/player.cpp')
-rw-r--r--src/player.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/player.cpp b/src/player.cpp
index ad5b568b..ca8c9f14 100644
--- a/src/player.cpp
+++ b/src/player.cpp
@@ -161,6 +161,11 @@ void Player::setSprite(int slot, int id, std::string color)
{
delete mSprites[slot];
mSprites[slot] = NULL;
+
+ if (slot == WEAPON_SPRITE)
+ {
+ mEquippedWeapon = NULL;
+ }
}
else
{