From 665d107181b0bad1f38d117c839c3fb98a295f8b Mon Sep 17 00:00:00 2001 From: Lukas Krickl Date: Tue, 17 Jun 2025 05:16:03 +0200 Subject: [PATCH] unit display: removed cursor around active unit Player units are not drawn with x-flip. --- src/unit.s | 22 ++-------------------- src/update.s | 1 - 2 files changed, 2 insertions(+), 21 deletions(-) diff --git a/src/unit.s b/src/unit.s index 83e0391..fabccbc 100644 --- a/src/unit.s +++ b/src/unit.s @@ -74,7 +74,7 @@ unit_demo_1_update: ld hl, act_oam_flags add hl, de ld a, [hl] - or a, OAM_DMG_PAL + or a, OAM_FXFLIP ld [hl], a pop de @@ -91,21 +91,10 @@ unit_demo_1_update: ; cpu controllerd unit update unit_demo_1_cpu_update: - push de - ld hl, act_oam_flags - add hl, de - ld a, [hl] - or a, OAM_DMG_PAL - ld [hl], a - pop de - push de call unit_handle_cpu_inputs pop de - push de - call unit_scroll_center - pop de ret unit_handle_cpu_inputs: @@ -713,13 +702,6 @@ unit_delay_to_active: ; inputs ; de: actor unit_idle: - ; turn on OAM Palette 0 - ld hl, act_oam_flags - add hl, de - ld a, [hl] - and a, ~OAM_DMG_PAL & 0xFF - ld [hl], a - ldnull bc ret @@ -827,7 +809,7 @@ unit_demo_2: act_inventory_empty act_equipment_empty act_effects_empty - act_st_def NULL, NULL, st_unit_demo_1_update, st_unit_idle + act_st_def NULL, NULL, st_unit_demo_1_cpu_update, st_unit_idle act_def_draw unit_draw, 0x84, 0 act_rt_def diff --git a/src/update.s b/src/update.s index b877ea6..7e55201 100644 --- a/src/update.s +++ b/src/update.s @@ -14,7 +14,6 @@ update_game: ; clear oam call shadow_oam_clear - call ui_display_current_unit ld hl, p0_units call units_update -- 2.30.2