mirror of
https://github.com/minetest/minetest.git
synced 2024-11-30 19:43:45 +01:00
Don't draw cracks when digging is impossible
This commit is contained in:
parent
07ed57476f
commit
910186905f
@ -1968,7 +1968,11 @@ void the_game(
|
|||||||
dig_index = CRACK_ANIMATION_LENGTH;
|
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");
|
//TimeTaker timer("client.setTempMod");
|
||||||
//infostream<<"dig_index="<<dig_index<<std::endl;
|
//infostream<<"dig_index="<<dig_index<<std::endl;
|
||||||
|
Loading…
Reference in New Issue
Block a user