Prev: 8456 Up: Map Next: 85E1
859A: Update Sidhe
Used by the routines at Vectors and HeroDraw().
SidheUpdate 859A LD HL,(Baddy_LinkPtr)
859D LD A,L
859E OR H
859F RET Z
85A0 PUSH HL
85A1 CALL SideMove
85A4 POP IX
85A6 LD A,(IX+$0F)
85A9 AND A
85AA RET NZ
85AB LD A,(CamDirection_DFD2)
85AE XOR (IX+$02)
85B1 BIT 0,A
85B3 RET Z
85B4 LD HL,(ManData_PosSecondary_dfc5)
85B7 LD E,(IX+$07)
85BA LD D,(IX+$08)
85BD EXX
85BE LD HL,(ManData_PosPrimary_dfc3)
85C1 LD E,(IX+$05)
85C4 LD D,(IX+$06)
85C7 BIT 0,(IX+$02)
85CB JR NZ,SidheUpdate_0
85CD EXX
SidheUpdate_0 85CE AND A
85CF SBC HL,DE
85D1 RET NZ
85D2 EXX
85D3 CALL Vector_ABS(hl_minus_de)
85D6 LD DE,$0024
85D9 AND A
85DA SBC HL,DE
85DC RET NC
85DD CALL SpriteBlit
85E0 RET
Prev: 8456 Up: Map Next: 85E1