aboutsummaryrefslogtreecommitdiffstats
path: root/engine/overworld
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-11-05 10:51:02 -0500
committerRangi <remy.oukaour+rangi42@gmail.com>2020-11-05 10:51:02 -0500
commit6fe56af2cd63abaf30040cc5031e3db5358cf638 (patch)
treeb024aa8480912ebf2667184068466ee7f354012c /engine/overworld
parentMerge pull request #59 from Rangi42/master (diff)
downloadpokeyellow-6fe56af2cd63abaf30040cc5031e3db5358cf638.tar.gz
pokeyellow-6fe56af2cd63abaf30040cc5031e3db5358cf638.tar.xz
pokeyellow-6fe56af2cd63abaf30040cc5031e3db5358cf638.zip
Organize home and macro code
Diffstat (limited to 'engine/overworld')
-rwxr-xr-xengine/overworld/map_sprites.asm2
-rw-r--r--engine/overworld/specific_script_flags.asm2
2 files changed, 2 insertions, 2 deletions
diff --git a/engine/overworld/map_sprites.asm b/engine/overworld/map_sprites.asm
index e31c0bd2..ba412ab2 100755
--- a/engine/overworld/map_sprites.asm
+++ b/engine/overworld/map_sprites.asm
@@ -304,7 +304,7 @@ GetSplitMapSpriteSetID:
ld hl, MapSpriteSets
add hl, de
ld a, [hl] ; a = spriteSetID
- cp a, $f0 ; does the map have 2 sprite sets?
+ cp $f0 ; does the map have 2 sprite sets?
ret c
; Chooses the correct sprite set ID depending on the player's position within
; the map for maps with two sprite sets.
diff --git a/engine/overworld/specific_script_flags.asm b/engine/overworld/specific_script_flags.asm
index d6f333ac..b59aa9d0 100644
--- a/engine/overworld/specific_script_flags.asm
+++ b/engine/overworld/specific_script_flags.asm
@@ -8,7 +8,7 @@ SetMapSpecificScriptFlagsOnMapReload::
ld a, [hli]
cp c
jr z, .in_list
- cp a, $ff
+ cp $ff
jr nz, .search_loop
ret