From f31b0a3361c0c39b9f6f6ee440b93293690bbe02 Mon Sep 17 00:00:00 2001 From: JacobF Date: Wed, 7 Sep 2011 10:56:04 -0400 Subject: Display which tool the player is holding And some simple animation when trying to dig... --- src/client.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/client.cpp') diff --git a/src/client.cpp b/src/client.cpp index a5ed6f61b..d491f9d36 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -2008,6 +2008,14 @@ v3f Client::getPlayerPosition(v3f *eye_position) return player->getPosition(); } +void Client::setPlayerWield(scene::ISceneNode *wield) +{ + //JMutexAutoLock envlock(m_env_mutex); //bulk comment-out + LocalPlayer *player = m_env.getLocalPlayer(); + assert(player != NULL); + player->wield = wield; +} + void Client::setPlayerControl(PlayerControl &control) { //JMutexAutoLock envlock(m_env_mutex); //bulk comment-out -- cgit v1.2.3