aboutsummaryrefslogtreecommitdiff
path: root/src/content_sao.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/content_sao.cpp')
-rw-r--r--src/content_sao.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/content_sao.cpp b/src/content_sao.cpp
index 8d46d4237..799c279a4 100644
--- a/src/content_sao.cpp
+++ b/src/content_sao.cpp
@@ -1454,8 +1454,9 @@ std::string PlayerSAO::getPropertyPacket()
return gob_cmd_set_properties(m_prop);
}
-void PlayerSAO::checkMovementCheat()
+bool PlayerSAO::checkMovementCheat()
{
+ bool cheated = false;
if(isAttached() || m_is_singleplayer ||
g_settings->getBool("disable_anticheat"))
{
@@ -1503,8 +1504,10 @@ void PlayerSAO::checkMovementCheat()
<<std::endl;
m_player->setPosition(m_last_good_position);
m_moved = true;
+ cheated = true;
}
}
+ return cheated;
}
bool PlayerSAO::getCollisionBox(aabb3f *toset) {