Skip to content

Commit

Permalink
Compare strings with STRCMP, not ==
Browse files Browse the repository at this point in the history
  • Loading branch information
Rangi42 committed Nov 24, 2021
1 parent 7eb2460 commit 4639fee
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions data/maps/palettes.asm
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
special_pal_for: MACRO
if "\1" == "map"
if !STRCMP("\1", "map")
db PAL_FOR_MAP
map_id \2 ; map id
elif "\1" == "landmark"
elif !STRCMP("\1", "landmark")
db PAL_FOR_LANDMARK
db \2 ; landmark
elif "\1" == "tileset"
elif !STRCMP("\1", "tileset")
db PAL_FOR_TILESET
db \2 ; tileset
elif "\1" == "overcast"
elif !STRCMP("\1", "overcast")
db PAL_FOR_OVERCAST
elif "\1" == "darkness"
elif !STRCMP("\1", "darkness")
db PAL_FOR_DARKNESS
endc
ENDM
Expand Down

0 comments on commit 4639fee

Please sign in to comment.