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

This commit is contained in:
PilzAdam 2013-06-13 12:41:23 +00:00
parent 21d6b39fd7
commit 7a58c1d4ca

@ -2706,7 +2706,12 @@ void the_game(
gamedef->event()->put(e); 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 camera.setDigging(0); // left click animation
} }