From: Lukas Krickl Date: Tue, 16 Sep 2025 07:05:25 +0000 (+0200) Subject: mapgen: fixed typo X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=dfd80cd51dee05ac1ff1c213d493ed38f1c32a93;p=gbrg%2F.git mapgen: fixed typo --- 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