summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2013-08-30 23:03:15 -0400
committeryenatch <yenatch@gmail.com>2013-08-30 23:03:15 -0400
commitc402a16def99bad3df047d570120d1f1da1abbc3 (patch)
tree69513cc8f408799d7e496f80efc2fbf84c62d570
parentc9d3881a2ffa4e3bdb5e5c12d98c20c0bba1e400 (diff)
undo overcommenting in BattleRandom
these comments made sense before hram and rst constants were established
-rw-r--r--main.asm7
1 files changed, 3 insertions, 4 deletions
diff --git a/main.asm b/main.asm
index dfa5ed172..64ec02a0c 100644
--- a/main.asm
+++ b/main.asm
@@ -5607,14 +5607,13 @@ BattleRandom: ; 2f9f
; 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