diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-12-02 15:20:42 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-12-02 15:20:42 +0200 |
commit | ec1859b095e1a4319afbc9de9b5806bf0546afb0 (patch) | |
tree | 26d77357921936f81cdcf1a73fc076d0d2a90e9b /src | |
parent | bc00cdeb2ce5eda90d8ddae49e417ee253661421 (diff) | |
download | minetest-ec1859b095e1a4319afbc9de9b5806bf0546afb0.tar.gz minetest-ec1859b095e1a4319afbc9de9b5806bf0546afb0.tar.bz2 minetest-ec1859b095e1a4319afbc9de9b5806bf0546afb0.zip |
Show bare hand when no item is selected
Diffstat (limited to 'src')
-rw-r--r-- | src/camera.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/camera.cpp b/src/camera.cpp index 6c81c46e2..8f421e691 100644 --- a/src/camera.cpp +++ b/src/camera.cpp @@ -277,7 +277,7 @@ void Camera::update(LocalPlayer* player, f32 frametime, v2u32 screensize) // Position the wielded item v3f wield_position = v3f(45, -35, 65); - v3f wield_rotation = v3f(-100, 110, -100); + v3f wield_rotation = v3f(-100, 120, -100); if (m_digging_button != -1) { f32 digfrac = m_digging_anim; @@ -500,7 +500,9 @@ void Camera::wield(const InventoryItem* item, IGameDef *gamedef) else { // Bare hands - m_wieldnode->setVisible(false); + m_wieldnode->setSprite(gamedef->tsrc()->getTextureRaw("wieldhand.png")); + m_wieldnode->setScale(v3f(40)); + m_wieldnode->setVisible(true); } } |