shithub: pokecrystal

Download patch

ref: bb4a6e5f550c2bde42541aa201aaa720cd461005
parent: 603bcfe2ae52fdcee147347d27e9bb3a23f19fd0
author: Rangi <remy.oukaour+rangi42@gmail.com>
date: Sun Sep 9 13:15:49 EDT 2018

wCursorCurTile -> wCursorCurrentTile

--- a/engine/link/link_trade.asm
+++ b/engine/link/link_trade.asm
@@ -250,7 +250,7 @@
 	ret
 
 .UpdateCursor:
-	ld hl, wCursorCurTile
+	ld hl, wCursorCurrentTile
 	ld a, [hli]
 	ld h, [hl]
 	ld l, a
@@ -320,9 +320,9 @@
 	pop hl
 .cursor_already_there
 	ld a, l
-	ld [wCursorCurTile], a
+	ld [wCursorCurrentTile], a
 	ld a, h
-	ld [wCursorCurTile + 1], a
+	ld [wCursorCurrentTile + 1], a
 	ret
 
 .TryAnims:
--- a/engine/menus/menu.asm
+++ b/engine/menus/menu.asm
@@ -208,8 +208,8 @@
 	ld [wMenuCursorY], a
 	xor a
 	ld [wCursorOffCharacter], a
-	ld [wCursorCurTile], a
-	ld [wCursorCurTile + 1], a
+	ld [wCursorCurrentTile], a
+	ld [wCursorCurrentTile + 1], a
 	ret
 
 .InitFlags_a:
@@ -493,7 +493,7 @@
 	ret
 
 Move2DMenuCursor:
-	ld hl, wCursorCurTile
+	ld hl, wCursorCurrentTile
 	ld a, [hli]
 	ld h, [hl]
 	ld l, a
@@ -549,9 +549,9 @@
 
 .cursor_on
 	ld a, l
-	ld [wCursorCurTile], a
+	ld [wCursorCurrentTile], a
 	ld a, h
-	ld [wCursorCurTile + 1], a
+	ld [wCursorCurrentTile + 1], a
 	ret
 
 _PushWindow::
@@ -797,7 +797,7 @@
 ; wMenuCursorX
 	ld a, 1
 	ld [hli], a
-; wCursorOffCharacter, wCursorCurTile
+; wCursorOffCharacter, wCursorCurrentTile
 	xor a
 	ld [hli], a
 	ld [hli], a
--- a/engine/menus/scrolling_menu.asm
+++ b/engine/menus/scrolling_menu.asm
@@ -322,8 +322,8 @@
 	ld a, 1
 	ld [wMenuCursorX], a
 	xor a
-	ld [wCursorCurTile], a
-	ld [wCursorCurTile + 1], a
+	ld [wCursorCurrentTile], a
+	ld [wCursorCurrentTile + 1], a
 	ld [wCursorOffCharacter], a
 	ret
 
--- a/home/movement.asm
+++ b/home/movement.asm
@@ -176,7 +176,7 @@
 	ret
 
 PlaceHollowCursor::
-	ld hl, wCursorCurTile
+	ld hl, wCursorCurrentTile
 	ld a, [hli]
 	ld h, [hl]
 	ld l, a
@@ -184,7 +184,7 @@
 	ret
 
 HideCursor::
-	ld hl, wCursorCurTile
+	ld hl, wCursorCurrentTile
 	ld a, [hli]
 	ld h, [hl]
 	ld l, a
--- a/wram.asm
+++ b/wram.asm
@@ -1494,7 +1494,7 @@
 wMenuCursorY:: db ; cfa9
 wMenuCursorX:: db ; cfaa
 wCursorOffCharacter:: db ; cfab
-wCursorCurTile:: dw ; cfac
+wCursorCurrentTile:: dw ; cfac
 
 	ds 3