Skip to content

Commit

Permalink
Reset dig_time when switching to a tool that cant dig the current node
Browse files Browse the repository at this point in the history
  • Loading branch information
PilzAdam committed Jun 13, 2013
1 parent 21d6b39 commit 7a58c1d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/game.cpp
Expand Up @@ -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
}
Expand Down

0 comments on commit 7a58c1d

Please sign in to comment.