summaryrefslogtreecommitdiff
path: root/home/vcopy.asm
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2014-09-20 00:57:27 -0400
committeryenatch <yenatch@gmail.com>2014-09-20 00:57:27 -0400
commitdff0cdeb5a2f901dc8d1a05847d09d7faf1654ad (patch)
tree3618582f76f4183b6bc22c5d4743b6d171d11128 /home/vcopy.asm
parent1185d69819af3493fe8ace9f576fee4b420db55e (diff)
parent2ed65d9c3e3ba60939ebe2928ffddc06a90b1876 (diff)
Merge remote-tracking branch 'YamaArashi/master'
Conflicts: constants/misc_constants.asm engine/battle/core.asm engine/menu/pokedex.asm engine/town_map.asm home.asm hram.asm
Diffstat (limited to 'home/vcopy.asm')
-rw-r--r--home/vcopy.asm7
1 files changed, 4 insertions, 3 deletions
diff --git a/home/vcopy.asm b/home/vcopy.asm
index 81fcb991..d42293d9 100644
--- a/home/vcopy.asm
+++ b/home/vcopy.asm
@@ -376,9 +376,9 @@ UpdateMovingBgTiles::
; Animate water and flower
; tiles in the overworld.
- ld a, [$ffd7]
+ ld a, [hTilesetType]
and a
- ret z
+ ret z ; no animations if indoors (or if a menu set this to 0)
ld a, [$ffd8]
inc a
@@ -412,9 +412,10 @@ UpdateMovingBgTiles::
dec c
jr nz, .left
.done
- ld a, [$ffd7]
+ ld a, [hTilesetType]
rrca
ret nc
+; if in a cave, no flower animations
xor a
ld [$ffd8], a
ret