From 910186905f7e0344a70357b9efd3a7bc57773c90 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sun, 4 Mar 2012 16:21:35 +0200 Subject: [PATCH] Don't draw cracks when digging is impossible --- src/game.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/game.cpp b/src/game.cpp index 3009112f..594583fd 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -1967,8 +1967,12 @@ void the_game( { dig_index = CRACK_ANIMATION_LENGTH; } - - if(dig_index < CRACK_ANIMATION_LENGTH) + + // Don't show cracks if not diggable + if(dig_time_complete >= 100000.0) + { + } + else if(dig_index < CRACK_ANIMATION_LENGTH) { //TimeTaker timer("client.setTempMod"); //infostream<<"dig_index="<