Skip to content

Commit

Permalink
Correct wTileMapBackup declared space
Browse files Browse the repository at this point in the history
wTileMapBackup isnt just used to backup the tilemap but also as a buffer for a screen view out of blocks during the drawing of the tilemap
  • Loading branch information
Engezerstorung committed Jan 23, 2025
1 parent f023c68 commit c5b6f33
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ram/wram.asm
Original file line number Diff line number Diff line change
Expand Up @@ -153,13 +153,14 @@ wShadowOAMEnd::

SECTION "Tilemap", WRAM0

; buffer to load the screen view from blocks during LoadCurrentMapView (6*5 blocks worth of tiles)
; buffer for tiles that are visible on screen (20 columns by 18 rows)
wTileMap:: ds SCREEN_WIDTH * SCREEN_HEIGHT

UNION
; buffer for temporarily saving and restoring current screen's tiles
; (e.g. if menus are drawn on top)
wTileMapBackup:: ds SCREEN_WIDTH * SCREEN_HEIGHT
wTileMapBackup:: ds 24 * 20

NEXTU
; list of indexes to patch with SERIAL_NO_DATA_BYTE after transfer
Expand All @@ -169,8 +170,6 @@ wSerialPartyMonsPatchList:: ds 200
wSerialEnemyMonsPatchList:: ds 200
ENDU

ds 80


SECTION "Overworld Map", WRAM0

Expand Down

0 comments on commit c5b6f33

Please sign in to comment.