summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-07-21 14:38:49 +0300
committerPerttu Ahola <celeron55@gmail.com>2012-07-21 14:38:49 +0300
commit2795f44f0316c83728bc8059a020869058498f78 (patch)
tree38f46d49d49033cc454da660b829c1e950a491b8 /src/game.cpp
parentb0ba05c9ac021032801952ff1220ed4ab1b1bd45 (diff)
downloadminetest-2795f44f0316c83728bc8059a020869058498f78.tar.gz
minetest-2795f44f0316c83728bc8059a020869058498f78.tar.bz2
minetest-2795f44f0316c83728bc8059a020869058498f78.zip
Server-side checking of digging; disable_anticheat setting
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/game.cpp b/src/game.cpp
index b29d2d646..e2e6dd8c1 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -2112,7 +2112,9 @@ void the_game(
ldown_for_dig = true;
}
MapNode n = client.getEnv().getClientMap().getNode(nodepos);
-
+
+ // NOTE: Similar piece of code exists on the server side for
+ // cheat detection.
// Get digging parameters
DigParams params = getDigParams(nodedef->get(n).groups,
&playeritem_toolcap);
@@ -2160,7 +2162,7 @@ void the_game(
{
dig_index = crack_animation_length;
}
-
+
// Don't show cracks if not diggable
if(dig_time_complete >= 100000.0)
{