Skip to content
Snippets Groups Projects
Commit e57dc4ef authored by PilzAdam's avatar PilzAdam
Browse files

Dont animate changing wielditem from hand to hand

parent c67f7289
No related branches found
No related tags found
No related merge requests found
......@@ -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% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment