diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-10-26 22:24:47 -0400 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-10-26 22:24:47 -0400 |
commit | 676f2f12e3e7990dcc49e3ea391f10aae8131639 (patch) | |
tree | 0411091966fe7a6b5a64f27aa828df015bb84362 /engine/battle_anims | |
parent | 46f6cc4d41494c044f1091491c712afc2a5bfd3a (diff) |
Use more assertions to ensure correct code and data
Diffstat (limited to 'engine/battle_anims')
-rw-r--r-- | engine/battle_anims/anim_commands.asm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engine/battle_anims/anim_commands.asm b/engine/battle_anims/anim_commands.asm index 433a8e5e..9bba60a3 100644 --- a/engine/battle_anims/anim_commands.asm +++ b/engine/battle_anims/anim_commands.asm @@ -218,7 +218,8 @@ BattleAnim_ClearOAM: ld c, NUM_SPRITE_OAM_STRUCTS .loop ld a, [hl] - and $ff ^ (PALETTE_MASK | VRAM_BANK_1) ; PAL_BATTLE_OB_ENEMY (0) + and $ff ^ (PALETTE_MASK | VRAM_BANK_1) ; zeros out the palette bits + assert PAL_BATTLE_OB_ENEMY == 0 ld [hli], a rept SPRITEOAMSTRUCT_LENGTH - 1 inc hl |