shithub: pokecrystal

Download patch

ref: 8b06ff09ebfc889eab824ae60cdf644f23abff83
parent: 6306e590bd23c763ab91f2493d61a83c5572d54b
author: Rangi <remy.oukaour+rangi42@gmail.com>
date: Sat Jun 30 11:58:05 EDT 2018

Use significant values 5, 6, and 7

--- a/engine/gfx/load_pics.asm
+++ b/engine/gfx/load_pics.asm
@@ -417,7 +417,7 @@
 	jr z, .five
 
 .seven_loop
-	ld c, $70
+	ld c, 7 << 4
 	call LoadOrientedFrontpic
 	dec b
 	jr nz, .seven_loop
@@ -424,14 +424,14 @@
 	ret
 
 .six
-	ld c, $70
+	ld c, 7 << 4
 	xor a
 	call .Fill
 .six_loop
-	ld c, $10
+	ld c, (7 - 6) << 4
 	xor a
 	call .Fill
-	ld c, $60
+	ld c, 6 << 4
 	call LoadOrientedFrontpic
 	dec b
 	jr nz, .six_loop
@@ -438,18 +438,18 @@
 	ret
 
 .five
-	ld c, $70
+	ld c, 7 << 4
 	xor a
 	call .Fill
 .five_loop
-	ld c, $20
+	ld c, (7 - 5) << 4
 	xor a
 	call .Fill
-	ld c, $50
+	ld c, 5 << 4
 	call LoadOrientedFrontpic
 	dec b
 	jr nz, .five_loop
-	ld c, $70
+	ld c, 7 << 4
 	xor a
 	call .Fill
 	ret