ref: c402a16def99bad3df047d570120d1f1da1abbc3
parent: c9d3881a2ffa4e3bdb5e5c12d98c20c0bba1e400
author: yenatch <[email protected]>
date: Fri Aug 30 19:03:15 EDT 2013
undo overcommenting in BattleRandom these comments made sense before hram and rst constants were established
--- a/main.asm
+++ b/main.asm
@@ -5607,14 +5607,13 @@
; It handles all RNG calls in the battle engine, allowing
; link battles to remain in sync using a shared PRNG.
-; Save bank
- ld a, [hROMBank] ; bank
+ ld a, [hROMBank]
push af
-; Bankswitch
ld a, BANK(_BattleRandom)
rst Bankswitch
+
call _BattleRandom
-; Restore bank
+
ld [$cfb6], a
pop af
rst Bankswitch