shithub: pokecrystal

Download patch

ref: e671636bba211b30a15b86bf748989b6e61dcf0a
parent: d342bf9b45eb821727ff5e282e0daa0b59a90475
author: Rangi <remy.oukaour+rangi42@gmail.com>
date: Mon Feb 18 06:35:28 EST 2019

Card Flip digits are shifted 1px up, not 2px left

--- a/engine/games/card_flip.asm
+++ b/engine/games/card_flip.asm
@@ -41,7 +41,7 @@
 	ld bc, 1 tiles
 	call CopyBytes
 
-	call CardFlip_ShiftDigitsLeftTwoPixels
+	call CardFlip_ShiftDigitsUpOnePixel
 	call CardFlip_InitTilemap
 	call CardFlip_InitAttrPals
 	call EnableLCD
@@ -594,7 +594,9 @@
 	jr nz, .loop
 	ret
 
-CardFlip_ShiftDigitsLeftTwoPixels:
+CardFlip_ShiftDigitsUpOnePixel:
+; The top rows of digits 1-9 become the bottom rows of 0-8,
+; so this routine relies on the top rows being blank.
 	ld de, vTiles0 tile "0"
 	ld hl, vTiles0 tile "0" + 2
 	ld bc, 10 tiles - 2