mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
attempting to merge Queatz/the-wielded-tool and kahrl/viewbobbing, something doesn't work right yet
This commit is contained in:
commit
71418639d3
6 changed files with 133 additions and 29 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue