diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-01-27 08:17:31 +0000 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-01-27 08:17:31 +0000 |
commit | b83e507346e3c2b3f1e0c810f11ccd1507189a47 (patch) | |
tree | 12068ad0c489dcf2e6824c81c4c3873595a5aca9 | |
parent | e9c93aaaa463f288ef589589265bfffd90ecc96d (diff) | |
download | mana-client-b83e507346e3c2b3f1e0c810f11ccd1507189a47.tar.gz mana-client-b83e507346e3c2b3f1e0c810f11ccd1507189a47.tar.bz2 mana-client-b83e507346e3c2b3f1e0c810f11ccd1507189a47.tar.xz mana-client-b83e507346e3c2b3f1e0c810f11ccd1507189a47.zip |
Restore punching animation after weapon removal
-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 ec3b1c1c..5ab94595 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -144,6 +144,11 @@ void Player::setSprite(int slot, int id, std::string color) { delete mSprites[slot]; mSprites[slot] = NULL; + + if (slot == WEAPON_SPRITE) + { + mEquippedWeapon = NULL; + } } else { |