From 15833b1f7289e36c5ee853ddb2b7eef74dc447f5 Mon Sep 17 00:00:00 2001 From: Dethrace Labs <78985374+dethrace-labs@users.noreply.github.com> Date: Mon, 6 Oct 2025 12:26:58 +1300 Subject: [PATCH] ShowOppoPaths matching --- src/DETHRACE/common/opponent.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/DETHRACE/common/opponent.c b/src/DETHRACE/common/opponent.c index 6d28fe08..2a27a483 100644 --- a/src/DETHRACE/common/opponent.c +++ b/src/DETHRACE/common/opponent.c @@ -4000,17 +4000,17 @@ int ConsistencyCheck(void) { void ShowOppoPaths(void) { char str[256]; - if (!gOppo_paths_shown) { - if (gOppo_path_actor != NULL) { - gOppo_path_actor->render_style = BR_RSTYLE_NONE; - } - NewTextHeadupSlot(eHeadupSlot_misc, 0, 1000, -1, "Not displaying any paths"); - } else { + if (gOppo_paths_shown) { RebuildOppoPathModel(); sprintf(str, "Total %d nodes, %d sections", gProgram_state.AI_vehicles.number_of_path_nodes, gProgram_state.AI_vehicles.number_of_path_sections); - NewTextHeadupSlot(eHeadupSlot_misc, 0, 1000, -1, str); + NewTextHeadupSlot(eHeadupSlot_misc, 0, 3000, -1, str); + } else { + if (gOppo_path_actor != NULL) { + gOppo_path_actor->render_style = BR_RSTYLE_NONE; + } + NewTextHeadupSlot(eHeadupSlot_misc, 0, 3000, -1, "Not displaying any paths"); } if (ConsistencyCheck()) { WriteOutOppoPaths();