mirror of
https://github.com/moparisthebest/minetest
synced 2024-12-23 08:08:47 -05:00
Fix disabling of player movement cheat detection in singleplayer
This commit is contained in:
parent
491287c0af
commit
5bd32eca0f
@ -867,7 +867,12 @@ void PlayerSAO::step(float dtime, bool send_recommended)
|
|||||||
|
|
||||||
m_time_from_last_punch += dtime;
|
m_time_from_last_punch += dtime;
|
||||||
|
|
||||||
if(!m_is_singleplayer)
|
if(m_is_singleplayer)
|
||||||
|
{
|
||||||
|
m_last_good_position = m_player->getPosition();
|
||||||
|
m_last_good_position_age = 0;
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
Check player movements
|
Check player movements
|
||||||
|
Loading…
Reference in New Issue
Block a user