Skip to content

Commit

Permalink
Dont animate changing wielditem from hand to hand
Browse files Browse the repository at this point in the history
  • Loading branch information
PilzAdam committed May 20, 2013
1 parent c67f728 commit e57dc4e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/camera.cpp
Expand Up @@ -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)
Expand Down

0 comments on commit e57dc4e

Please sign in to comment.