diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-04-01 13:37:07 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-04-01 13:37:07 +0300 |
commit | 5bd32eca0f4c8afa8d933f7d7d1946cabaa8dc43 (patch) | |
tree | 3218da07490399c809db26317a4f2cefa6504534 /src | |
parent | 491287c0af743d1d5c3ae6bbefd272244dbd864c (diff) | |
download | minetest-5bd32eca0f4c8afa8d933f7d7d1946cabaa8dc43.tar.gz minetest-5bd32eca0f4c8afa8d933f7d7d1946cabaa8dc43.tar.bz2 minetest-5bd32eca0f4c8afa8d933f7d7d1946cabaa8dc43.zip |
Fix disabling of player movement cheat detection in singleplayer
Diffstat (limited to 'src')
-rw-r--r-- | src/content_sao.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/content_sao.cpp b/src/content_sao.cpp index 810bd5a7c..2b3f7c022 100644 --- a/src/content_sao.cpp +++ b/src/content_sao.cpp @@ -867,7 +867,12 @@ void PlayerSAO::step(float dtime, bool send_recommended) 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 |