From dfd80cd51dee05ac1ff1c213d493ed38f1c32a93 Mon Sep 17 00:00:00 2001 From: Lukas Krickl Date: Tue, 16 Sep 2025 09:05:25 +0200 Subject: [PATCH] mapgen: fixed typo --- src/mapgen.s | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mapgen.s b/src/mapgen.s index 1c6fe77..c1ed699 100644 --- a/src/mapgen.s +++ b/src/mapgen.s @@ -523,7 +523,7 @@ mapgen_place_actors: ; move to next actor table entry push hl - call mapgent_unit_randomize_position + call mapgen_unit_randomize_position ld hl, act_size add hl, de push hl @@ -540,7 +540,7 @@ mapgen_place_actors: ; inputs: ; de: actor table entry ; preserves all registers -mapgent_unit_randomize_position: +mapgen_unit_randomize_position: push_all @retry: ld hl, act_pos_y @@ -552,7 +552,7 @@ mapgent_unit_randomize_position: and a, MAP_H - 1 ld b, a call rand - and a, MAP_H - 1 + and a, MAP_W - 1 ld c, a ; bc = y/x -- 2.30.2