shithub: pokered

Download patch

ref: 7911bc130943392a9aa901139c924aa9658e015f
parent: 64479cd64205d611a66698f447aa42c16c334b2d
author: yenatch <yenatch@gmail.com>
date: Sat May 24 07:44:12 EDT 2014

Rename engine/rng.asm to engine/random.asm.

--- /dev/null
+++ b/engine/random.asm
@@ -1,0 +1,13 @@
+Random_::
+; Generate a random 16-bit value.
+	ld a, [rDIV]
+	ld b, a
+	ld a, [hRandomAdd]
+	adc b
+	ld [hRandomAdd], a
+	ld a, [rDIV]
+	ld b, a
+	ld a, [hRandomSub]
+	sbc b
+	ld [hRandomSub], a
+	ret
--- a/engine/rng.asm
+++ /dev/null
@@ -1,13 +1,0 @@
-Random_::
-; Generate a random 16-bit value.
-	ld a, [rDIV]
-	ld b, a
-	ld a, [hRandomAdd]
-	adc b
-	ld [hRandomAdd], a
-	ld a, [rDIV]
-	ld b, a
-	ld a, [hRandomSub]
-	sbc b
-	ld [hRandomSub], a
-	ret
--- a/main.asm
+++ b/main.asm
@@ -15982,7 +15982,7 @@
 
 INCLUDE "engine/battle/4_2.asm"
 
-INCLUDE "engine/rng.asm"
+INCLUDE "engine/random.asm"
 
 SECTION "bank5",ROMX,BANK[$5]