Merge pull request #571 from Rangi42/master

Apply SPRITE_GFX_LIST_CAPACITY to wUsedSprites
This commit is contained in:
Rangi 2018-10-27 20:24:49 -04:00 committed by GitHub
commit 45f70b24d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -41,6 +41,8 @@ HP_RED EQU 2
SPRITEOAMSTRUCT_LENGTH EQU const_value SPRITEOAMSTRUCT_LENGTH EQU const_value
NUM_SPRITE_OAM_STRUCTS EQU 40 ; see wVirtualOAM NUM_SPRITE_OAM_STRUCTS EQU 40 ; see wVirtualOAM
SPRITE_GFX_LIST_CAPACITY EQU 32 ; see wUsedSprites
; PokeAnims indexes (see engine/gfx/pic_animation.asm) ; PokeAnims indexes (see engine/gfx/pic_animation.asm)
const_def const_def
const ANIM_MON_SLOW const ANIM_MON_SLOW

View File

@ -99,6 +99,4 @@ const_value = -1
const SPAWN_FAST_SHIP const SPAWN_FAST_SHIP
NUM_SPAWNS EQU const_value NUM_SPAWNS EQU const_value
; outdoor sprite limits (see engine/overworld/overworld.asm) MAX_OUTDOOR_SPRITES EQU 23 ; see engine/overworld/overworld.asm
MAX_OUTDOOR_SPRITES EQU 23
SPRITE_GFX_LIST_CAPACITY EQU $20

View File

@ -2004,7 +2004,7 @@ wPlayerStepDirection:: ; d151
wBGMapAnchor:: dw ; d152 wBGMapAnchor:: dw ; d152
UNION ; d154 UNION ; d154
wUsedSprites:: ds 64 wUsedSprites:: ds SPRITE_GFX_LIST_CAPACITY * 2
wUsedSpritesEnd:: wUsedSpritesEnd::
NEXTU ; d154 NEXTU ; d154