Fix to DDA acceleration calculation

Fixed problem with DDA acceleration calculation identified by rayhicks