Reset dig_time when switching to a tool that cant dig the current node

master
PilzAdam 2013-06-13 12:41:23 +00:00
parent 21d6b39fd7
commit 7a58c1d4ca
1 changed files with 6 additions and 1 deletions

View File

@ -2706,7 +2706,12 @@ void the_game(
gamedef->event()->put(e);
}
dig_time += dtime;
if(dig_time_complete < 100000.0)
dig_time += dtime;
else {
dig_time = 0;
client.setCrack(-1, nodepos);
}
camera.setDigging(0); // left click animation
}