From 5bd32eca0f4c8afa8d933f7d7d1946cabaa8dc43 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sun, 1 Apr 2012 13:37:07 +0300 Subject: [PATCH] Fix disabling of player movement cheat detection in singleplayer --- src/content_sao.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/content_sao.cpp b/src/content_sao.cpp index 810bd5a7..2b3f7c02 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 -- 2.30.2