aboutsummaryrefslogtreecommitdiff
path: root/rng.gbasm
diff options
context:
space:
mode:
authorAstatin <[email protected]>2025-03-19 17:31:51 +0900
committerAstatin <[email protected]>2025-03-19 17:31:51 +0900
commit2df3daa5128a27381fe5208fa4eac59ab10bdd9c (patch)
treeebfba43be7a310806b83433dc1816c49ada92a80 /rng.gbasm
parent22f57d7e37626b81c045d7b9090dec47d3784bcc (diff)
Fix infinite loop on respawn enemy
Diffstat (limited to 'rng.gbasm')
-rw-r--r--rng.gbasm6
1 files changed, 2 insertions, 4 deletions
diff --git a/rng.gbasm b/rng.gbasm
index e2c30ae..8867c56 100644
--- a/rng.gbasm
+++ b/rng.gbasm
@@ -60,13 +60,11 @@ RNG_Step:
LD A, D
LD $mem_rng_state_1, A
- LD A, $mem_loop_frame_timer
- LD D, A
-
LD A, E
LD $mem_rng_state_2, A
- XOR D
+ LD A, $mem_loop_frame_timer
+ XOR E
POP DE
POP BC