summaryrefslogtreecommitdiff
path: root/engine/routines/loadmappart.asm
diff options
context:
space:
mode:
Diffstat (limited to 'engine/routines/loadmappart.asm')
-rw-r--r--engine/routines/loadmappart.asm36
1 files changed, 0 insertions, 36 deletions
diff --git a/engine/routines/loadmappart.asm b/engine/routines/loadmappart.asm
deleted file mode 100644
index 2184ebf7e..000000000
--- a/engine/routines/loadmappart.asm
+++ /dev/null
@@ -1,36 +0,0 @@
-_LoadMapPart:: ; 4d15b
- ld hl, wMisc
- ld a, [wMetatileStandingY]
- and a
- jr z, .top_row
- ld bc, WMISC_WIDTH * 2
- add hl, bc
-
-.top_row
- ld a, [wMetatileStandingX]
- and a
- jr z, .left_column
- inc hl
- inc hl
-
-.left_column
- decoord 0, 0
- ld b, SCREEN_HEIGHT
-.loop
- ld c, SCREEN_WIDTH
-.loop2
- ld a, [hli]
- ld [de], a
- inc de
- dec c
- jr nz, .loop2
- ld a, l
- add 4
- ld l, a
- jr nc, .carry
- inc h
-
-.carry
- dec b
- jr nz, .loop
- ret