dda_lookahead.c: remember movement distance to avoid recalculation.