diff options
author | pikalaxalt <PikalaxALT@gmail.com> | 2016-05-04 11:46:23 -0400 |
---|---|---|
committer | pikalaxalt <PikalaxALT@gmail.com> | 2016-05-04 11:46:23 -0400 |
commit | 3713b71d9e3f3f1bc099d4704910cb9c1d172dcf (patch) | |
tree | 03069bd1fb4576c16b773b23bab0071aabb7cabd /engine/overworld.asm | |
parent | 82f1534925c5fe1f0d876ea88119b0121cfa65a6 (diff) |
More splitting of main.asm; remove unneeded rept 2
Diffstat (limited to 'engine/overworld.asm')
-rwxr-xr-x | engine/overworld.asm | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/engine/overworld.asm b/engine/overworld.asm index 12c7f56c6..4d22e55b6 100755 --- a/engine/overworld.asm +++ b/engine/overworld.asm @@ -147,9 +147,8 @@ AddOutdoorSprites: ; 141ee ld c, a ld b, 0 ld hl, OutdoorSprites -rept 2 add hl, bc -endr + add hl, bc ld a, [hli] ld h, [hl] ld l, a @@ -364,9 +363,8 @@ AddSpriteGFX: ; 142e5 jr z, .exists and a jr z, .new -rept 2 inc hl -endr + inc hl dec c jr nz, .loop @@ -428,9 +426,8 @@ SortUsedSprites: ; 1431e ld a, [de] and a jr nz, .FoundLastSprite -rept 2 dec de -endr + dec de dec c jr nz, .FindLastSprite .FoundLastSprite: @@ -472,16 +469,14 @@ endr ; Keep doing this until everything's in order. .loop -rept 2 dec de -endr + dec de dec c jr nz, .CheckFollowing pop hl -rept 2 inc hl -endr + inc hl pop de pop bc dec c |