Fix disabling of player movement cheat detection in singleplayer

pull/71/head
Perttu Ahola 2012-04-01 13:37:07 +03:00
parent 491287c0af
commit 5bd32eca0f
1 changed files with 6 additions and 1 deletions

View File

@ -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