diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-03-04 16:21:35 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-03-10 11:28:13 +0200 |
commit | 910186905f7e0344a70357b9efd3a7bc57773c90 (patch) | |
tree | 2e7435353bd341d232ba8b4d98cd5652a3b098f8 /src/game.cpp | |
parent | 07ed57476f56c54e781ab33467d3373d976d24b1 (diff) | |
download | minetest-910186905f7e0344a70357b9efd3a7bc57773c90.tar.gz minetest-910186905f7e0344a70357b9efd3a7bc57773c90.tar.bz2 minetest-910186905f7e0344a70357b9efd3a7bc57773c90.zip |
Don't draw cracks when digging is impossible
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
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="<<dig_index<<std::endl; |