shithub: pokecrystal

Download patch

ref: 79bd48f85c7dd1868264e290b12dad17a6e25b95
parent: f2ae74079fc917cbf7e1f640eb8beda0d4740887
author: luckytyphlosion <10688458+luckytyphlosion@users.noreply.github.com>
date: Tue Jan 23 11:49:58 EST 2018

Replace Stack with wStack.

--- a/engine/save.asm
+++ b/engine/save.asm
@@ -332,7 +332,7 @@
 FindStackTop: ; 14c90
 ; Find the furthest point that sp has traversed to.
 ; This is distinct from the current value of sp.
-	ld hl, Stack - $ff
+	ld hl, wStack - $ff
 .loop
 	ld a, [hl]
 	or a
--- a/engine/tileset_anims.asm
+++ b/engine/tileset_anims.asm
@@ -481,7 +481,7 @@
 	adc HIGH(WaterTileFrames)
 	ld h, a
 
-; Stack now points to the start of the tile for this frame.
+; The stack now points to the start of the tile for this frame.
 	ld sp, hl
 
 	ld l, e
@@ -845,7 +845,7 @@
 	adc h
 	ld h, a
 
-; Stack now points to the desired frame.
+; The stack now points to the desired frame.
 	ld sp, hl
 
 	ld l, e
--- a/home/init.asm
+++ b/home/init.asm
@@ -79,7 +79,7 @@
 	or c
 	jr nz, .ByteFill
 
-	ld sp, Stack
+	ld sp, wStack
 
 ; Clear HRAM
 	ld a, [hCGB]
--- a/wram.asm
+++ b/wram.asm
@@ -9,7 +9,7 @@
 
 StackBottom::
 	ds $100 - 1
-Stack::
+wStack::
 StackTop::
 	ds 1