shithub: pokecrystal

Download patch

ref: 84b6a084cb3fcbf99797fbd0d60720c4b306123d
parent: a5c1d9572c75fde821697c74b460522081c06aa3
author: Rangi <[email protected]>
date: Thu Jan 24 16:10:45 EST 2019

Keep "paragraphs" of related code together

--- a/engine/tilesets/tileset_anims.asm
+++ b/engine/tilesets/tileset_anims.asm
@@ -633,13 +633,13 @@
 ; Alternate tile graphic every other frame
 	ld a, [wTileAnimationTimer]
 	and %10
-	ld e, a
 
 ; CGB has different color mappings for flowers.
+	ld e, a
 	ldh a, [hCGB]
 	and 1
-
 	add e
+
 	swap a
 	ld e, a
 	ld d, 0
--- a/home/map.asm
+++ b/home/map.asm
@@ -102,8 +102,8 @@
 
 	ld a, [wTilesetBlocksBank]
 	rst Bankswitch
-
 	call LoadMetatiles
+
 	ld a, "■"
 	hlcoord 0, 0
 	ld bc, SCREEN_WIDTH * SCREEN_HEIGHT