Prev: 33607 Up: Map Next: 33697
33675: Adjust Second Slope Tile
Used by the routine at AdjustTerrainSlope.
Looks at the second tile code of the pair for AdjustTerrainSlope.
Input
C Extra row count
E Direction flag
Output
C Updated extra row count
AdjustTerrainSlope_Second 33675 LD A,(23604) Fetch the second tile code from EndShape.
33678 CP 147 Jump to AdjustTerrainSlope_Second93 if it is slope tile 147.
33680 JR Z,AdjustTerrainSlope_Second93
33682 CP 146 Jump to AdjustTerrainSlope_Second92 if it is slope tile 146.
33684 JR Z,AdjustTerrainSlope_Second92
33686 RET Return, as no other tile needs adjusting.
AdjustTerrainSlope_Second92 33687 LD A,E Fetch the direction flag.
33688 AND A Test it.
33689 RET Z Return if it is clear.
33690 INC C Add an extra row.
33691 RET Return.
AdjustTerrainSlope_Second93 33692 LD A,E Fetch the direction flag.
33693 AND A Test it.
33694 RET NZ Return if it is set.
33695 INC C Add an extra row.
33696 RET Return.
Prev: 33607 Up: Map Next: 33697