Prev: CD17 Up: Map Next: CD32
CD21: Shorten dY at the walls: test and shorten
Used by the routine at clip_dY_to_walls.
Inside if the distance plus the half-depth is less than the half-size.
clip_dY_test CD21 ADD A,(IX+$05) inside: done
CD24 CP B
CD25 JR C,dY_ok
CD27 SET 1,(IX+$0C) stopped in Y
CD2B LD A,L one unit shorter, and again unless nothing is left
CD2C CALL shorten_delta
CD2F LD L,A
CD30 JR NZ,clip_dY_to_walls
Prev: CD17 Up: Map Next: CD32