summaryrefslogtreecommitdiff
path: root/macros/scripts/maps.asm
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-07-14 16:07:23 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2020-07-14 16:07:23 -0400
commit93d0697f37aca8ed7a21298a980876af6d43268b (patch)
treed8a157ae5aa323a00873efe79eb4693327b8bb70 /macros/scripts/maps.asm
parent5c0f33cb5350d3e11bd75cc04d943549667ecd4c (diff)
Don't compare strings with ==; use STRCMP
Diffstat (limited to 'macros/scripts/maps.asm')
-rw-r--r--macros/scripts/maps.asm8
1 files changed, 4 insertions, 4 deletions
diff --git a/macros/scripts/maps.asm b/macros/scripts/maps.asm
index 6f643672..f2009209 100644
--- a/macros/scripts/maps.asm
+++ b/macros/scripts/maps.asm
@@ -109,7 +109,7 @@ _src = -_tgt
_tgt = 0
ENDC
-IF "\1" == "north"
+IF !STRCMP("\1", "north")
_blk = \3_WIDTH * (\3_HEIGHT - 3) + _src
_map = _tgt
_win = (\3_WIDTH + 6) * \3_HEIGHT + 1
@@ -120,7 +120,7 @@ IF _len > \3_WIDTH
_len = \3_WIDTH
ENDC
-ELIF "\1" == "south"
+ELIF !STRCMP("\1", "south")
_blk = _src
_map = (CURRENT_MAP_WIDTH + 6) * (CURRENT_MAP_HEIGHT + 3) + _tgt
_win = \3_WIDTH + 7
@@ -131,7 +131,7 @@ IF _len > \3_WIDTH
_len = \3_WIDTH
ENDC
-ELIF "\1" == "west"
+ELIF !STRCMP("\1", "west")
_blk = (\3_WIDTH * _src) + \3_WIDTH - 3
_map = (CURRENT_MAP_WIDTH + 6) * _tgt
_win = (\3_WIDTH + 6) * 2 - 6
@@ -142,7 +142,7 @@ IF _len > \3_HEIGHT
_len = \3_HEIGHT
ENDC
-ELIF "\1" == "east"
+ELIF !STRCMP("\1", "east")
_blk = (\3_WIDTH * _src)
_map = (CURRENT_MAP_WIDTH + 6) * _tgt + CURRENT_MAP_WIDTH + 3
_win = \3_WIDTH + 7