Don't draw cracks when digging is impossible

This commit is contained in:
Perttu Ahola 2012-03-04 16:21:35 +02:00
parent 07ed57476f
commit 910186905f
1 changed files with 6 additions and 2 deletions

View File

@ -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;