From 6ca82e5c86279258bfd4b21195d4521f26082fd4 Mon Sep 17 00:00:00 2001 From: Rangi Date: Wed, 8 Jul 2020 15:30:23 -0400 Subject: Eliminate enum: use const instead, with case-by-case parallel const implementations --- macros/scripts/gfx_anims.asm | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'macros/scripts/gfx_anims.asm') diff --git a/macros/scripts/gfx_anims.asm b/macros/scripts/gfx_anims.asm index a6241a0d8..ded61b87f 100644 --- a/macros/scripts/gfx_anims.asm +++ b/macros/scripts/gfx_anims.asm @@ -12,41 +12,41 @@ endc db x ENDM - enum_start $fc + const_def $fc - enum delanim_command ; $fc + const delanim_command ; $fc delanim: MACRO ; Removes the object from the screen, as opposed to `endanim` which just stops all motion db delanim_command ENDM - enum dowait_command ; $fd + const dowait_command ; $fd dowait: MACRO db dowait_command db \1 ; frames ENDM - enum dorestart_command ; $fe + const dorestart_command ; $fe dorestart: MACRO db dorestart_command ENDM - enum endanim_command ; $ff + const endanim_command ; $ff endanim: MACRO db endanim_command ENDM ; Used for pic animations -__enum__ = $fd +const_value = $fd - enum dorepeat_command ; $fd + const dorepeat_command ; $fd dorepeat: MACRO db dorepeat_command db \1 ; command offset to jump to ENDM - enum setrepeat_command ; $fe + const setrepeat_command ; $fe setrepeat: MACRO db setrepeat_command db \1 ; amount of times to repeat -- cgit v1.2.3