From e0b783bb7b9b73ff48b079a50156e0efdbf08be3 Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Tue, 18 Aug 2020 13:41:59 +0200 Subject: [PATCH] Enable compatibility with upcoming RGBASM version This is additionally required, because an `elif`'s condition is evaluated even when it's about to be skipped over, and this `"\2"` will become an error --- home/text.asm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/home/text.asm b/home/text.asm index 173b246eb..f4130e337 100644 --- a/home/text.asm +++ b/home/text.asm @@ -192,11 +192,13 @@ if ISCONST(\2) jr nz, ._\@ ld a, \2 ._\@: -elif STRSUB("\2", 1, 1) == "." -; Locals can use a short jump - jr z, \2 else + if STRSUB("\2", 1, 1) == "." + ; Locals can use a short jump + jr z, \2 + else jp z, \2 + endc endc ENDM