summaryrefslogtreecommitdiff
path: root/home/text.asm
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-08-18 10:22:03 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2020-08-18 10:22:03 -0400
commit5882c99f9d2581d0378a65c4559ae2ae6e0bc137 (patch)
treebc76704c3d019e84d3658e80223ffe645dd98156 /home/text.asm
parent5a4d689bb939dd3dabda681da6bdd91257338925 (diff)
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
Diffstat (limited to 'home/text.asm')
-rw-r--r--home/text.asm8
1 files changed, 5 insertions, 3 deletions
diff --git a/home/text.asm b/home/text.asm
index 833dd15f..f7fadd5e 100644
--- a/home/text.asm
+++ b/home/text.asm
@@ -183,11 +183,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