aboutsummaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorKahrl <kahrl@gmx.net>2011-09-08 14:21:56 +0200
committerKahrl <kahrl@gmx.net>2011-09-08 14:21:56 +0200
commit71418639d3e81a0c4f03633042f9c3472572a87e (patch)
tree95f4150ce9a45cb40c2a31807c6478da641968bf /src/client.cpp
parentf2ec2265216f4621558003dcbd8974f76063576b (diff)
parentf31b0a3361c0c39b9f6f6ee440b93293690bbe02 (diff)
downloadminetest-71418639d3e81a0c4f03633042f9c3472572a87e.tar.gz
minetest-71418639d3e81a0c4f03633042f9c3472572a87e.tar.bz2
minetest-71418639d3e81a0c4f03633042f9c3472572a87e.zip
attempting to merge Queatz/the-wielded-tool and kahrl/viewbobbing, something doesn't work right yet
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 81dedd144..71a826a1f 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -2004,6 +2004,14 @@ LocalPlayer* Client::getLocalPlayer()
return m_env.getLocalPlayer();
}
+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