Prev: CA5A Up: Map Next: CA70
CA5E: Shorten dZ at the floor: the loop
The loop for adj_dZ_for_out_of_bounds.
clip_dZ_to_floor CA5E LD A,(IX+$03) Z + dZ at or above the floor: done
CA61 ADD A,H
CA62 CP D
CA63 RET NC
CA64 SET 2,(IX+$0C) stopped in Z
CA68 LD A,H one unit shorter, and try again unless nothing is left
CA69 CALL shorten_delta
CA6C LD H,A
CA6D JR NZ,clip_dZ_to_floor
CA6F RET no move left
Prev: CA5A Up: Map Next: CA70