Skip to content
Permalink
Browse files

Dont animate changing wielditem from hand to hand

  • Loading branch information
PilzAdam committed May 20, 2013
1 parent c67f728 commit e57dc4ef1899fd172b94dc67c3a70be49803145e
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/camera.cpp
@@ -588,7 +588,8 @@ void Camera::wield(const ItemStack &item, u16 playeritem)
IItemDefManager *idef = m_gamedef->idef();
std::string itemname = item.getDefinition(idef).name;
m_wield_mesh_next = idef->getWieldMesh(itemname, m_gamedef);
if(playeritem != m_previous_playeritem) {
if(playeritem != m_previous_playeritem &&
!(m_previous_itemname == "" && itemname == "")) {
m_previous_playeritem = playeritem;
m_previous_itemname = itemname;
if(m_wield_change_timer >= 0.125)

0 comments on commit e57dc4e

Please sign in to comment.