aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/content_sao.cpp7
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