From: Perttu Ahola Date: Sun, 4 Mar 2012 14:21:35 +0000 (+0200) Subject: Don't draw cracks when digging is impossible X-Git-Tag: 0.4.dev-20120318~96 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=910186905f7e0344a70357b9efd3a7bc57773c90;p=oweals%2Fminetest.git Don't draw cracks when digging is impossible --- diff --git a/src/game.cpp b/src/game.cpp index 3009112f3..594583fdc 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="<