From 2795f44f0316c83728bc8059a020869058498f78 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sat, 21 Jul 2012 14:38:49 +0300 Subject: Server-side checking of digging; disable_anticheat setting --- src/game.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/game.cpp') 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) { -- cgit v1.2.3