diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-01-27 08:17:31 +0000 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-01-27 08:51:02 -0700 |
commit | 955a7613d1fe116fe5e1da07a222b6849b3c885c (patch) | |
tree | beb1aca75dfd841f59dc20cf0a6063254cb10c83 /src | |
parent | 9eb97160a7ea052054cbaa5fdf98352453a51c02 (diff) | |
download | Mana-955a7613d1fe116fe5e1da07a222b6849b3c885c.tar.gz Mana-955a7613d1fe116fe5e1da07a222b6849b3c885c.tar.bz2 Mana-955a7613d1fe116fe5e1da07a222b6849b3c885c.tar.xz Mana-955a7613d1fe116fe5e1da07a222b6849b3c885c.zip |
Restore punching animation after weapon removal
Diffstat (limited to 'src')
-rw-r--r-- | src/player.cpp | 5 |
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 { |