mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Revert custom player collision box and step height commits
These caused inability to pass through 2 node high spaces or step up onto slabs or steps when a new client connected to an older server.
This commit is contained in:
parent
c07c642ab0
commit
da88a18676
7 changed files with 4 additions and 30 deletions
|
@ -344,8 +344,8 @@ void LocalPlayer::move(f32 dtime, Environment *env, f32 pos_max_d,
|
|||
}
|
||||
}
|
||||
|
||||
float player_stepheight = (m_cao == 0) ? 0.0f :
|
||||
((touching_ground) ? m_cao->getStepheight() : (0.2f * BS));
|
||||
// TODO: this shouldn't be hardcoded but transmitted from server
|
||||
float player_stepheight = (touching_ground) ? (BS * 0.6f) : (BS * 0.2f);
|
||||
|
||||
#ifdef __ANDROID__
|
||||
player_stepheight += (0.6f * BS);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue