From: Perttu Ahola Date: Sun, 4 Mar 2012 14:21:35 +0000 (+0200) Subject: Don't draw cracks when digging is impossible X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=910186905f7e0344a70357b9efd3a7bc57773c90;p=zefram%2Fminetest%2Fminetest_engine.git Don't draw cracks when digging is impossible --- 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="<