From a303f1ba3e6297a9506397756237080ec0b1b722 Mon Sep 17 00:00:00 2001 From: Markus Hitter Date: Fri, 20 Feb 2015 12:43:14 +0100 Subject: [PATCH] dda.c: complete the rename from all_step to last_step. Next time, please at least try to compile the code section in question when explicitely changing the section. In this case, with ACCELERATION_TEMPORAL enabled. It didn't build. Was broken with commit 95926a3f113809bde8ff0c84b94c55c73e398f67, "DDA: Rename confusing variable name.". --- dda.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dda.c b/dda.c index a239aca..9340625 100644 --- a/dda.c +++ b/dda.c @@ -570,7 +570,7 @@ void dda_step(DDA *dda) { x_step(); move_state.steps[X]--; move_state.time[X] += dda->step_interval[X]; - move_state.all_time = move_state.time[X]; + move_state.last_time = move_state.time[X]; } #endif @@ -588,7 +588,7 @@ void dda_step(DDA *dda) { y_step(); move_state.steps[Y]--; move_state.time[Y] += dda->step_interval[Y]; - move_state.all_time = move_state.time[Y]; + move_state.last_time = move_state.time[Y]; } #endif @@ -606,7 +606,7 @@ void dda_step(DDA *dda) { z_step(); move_state.steps[Z]--; move_state.time[Z] += dda->step_interval[Z]; - move_state.all_time = move_state.time[Z]; + move_state.last_time = move_state.time[Z]; } #endif @@ -624,7 +624,7 @@ void dda_step(DDA *dda) { e_step(); move_state.steps[E]--; move_state.time[E] += dda->step_interval[E]; - move_state.all_time = move_state.time[E]; + move_state.last_time = move_state.time[E]; } #endif