Implement disabled spaces through east/west connections (#33)

This commit is contained in:
xCrystal
2023-12-21 19:56:52 +01:00
parent fc6f496254
commit 1cc65f4255
2 changed files with 87 additions and 2 deletions

15
engine/board/spaces.asm Executable file → Normal file
View File

@@ -569,6 +569,17 @@ _LoadDisabledSpaces:
ret
.WestConnectedMap:
.EastConnectedMap:
xor a
ld a, [wTempSpaceXCoord]
ld d, a
ld a, [wTempSpaceYCoord]
ld e, a
call GetWestConnectedBlockLocation
ret
.EastConnectedMap:
ld a, [wTempSpaceXCoord]
ld d, a
ld a, [wTempSpaceYCoord]
ld e, a
call GetEastConnectedBlockLocation
ret