From 6ab02b1a725bf770eff42a82e4cc02f7bcae126a Mon Sep 17 00:00:00 2001 From: Dethrace Labs <78985374+dethrace-labs@users.noreply.github.com> Date: Thu, 9 Oct 2025 09:07:33 +1300 Subject: [PATCH] ShowSectionInfo2 matching --- src/DETHRACE/common/opponent.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/DETHRACE/common/opponent.c b/src/DETHRACE/common/opponent.c index a38d8c98..45dd6fef 100644 --- a/src/DETHRACE/common/opponent.c +++ b/src/DETHRACE/common/opponent.c @@ -4529,10 +4529,10 @@ void ShowSectionInfo2(void) { NewTextHeadupSlot(eHeadupSlot_misc, 0, 2000, -1, "Show paths first (F5)"); } else if (gAlready_elasticating) { sprintf(str, "Towards start - min %d max %d, finish - min %d, max %d mph", - (int)(2.2f * gProgram_state.AI_vehicles.path_sections[gMobile_section].min_speed[0]), - (int)(2.2f * gProgram_state.AI_vehicles.path_sections[gMobile_section].max_speed[0]), - (int)(2.2f * gProgram_state.AI_vehicles.path_sections[gMobile_section].min_speed[1]), - (int)(2.2f * gProgram_state.AI_vehicles.path_sections[gMobile_section].max_speed[1])); + (int)(2.2 * gProgram_state.AI_vehicles.path_sections[gMobile_section].min_speed[0]), + (int)(2.2 * gProgram_state.AI_vehicles.path_sections[gMobile_section].max_speed[0]), + (int)(2.2 * gProgram_state.AI_vehicles.path_sections[gMobile_section].min_speed[1]), + (int)(2.2 * gProgram_state.AI_vehicles.path_sections[gMobile_section].max_speed[1])); NewTextHeadupSlot(eHeadupSlot_misc, 0, 2000, -1, str); } else { section_no = FindNearestPathSection(&gSelf->t.t.translate.t, &direction_v, &intersect, &distance); @@ -4540,10 +4540,10 @@ void ShowSectionInfo2(void) { NewTextHeadupSlot(eHeadupSlot_misc, 0, 2000, -1, "Can't find any sections close enough"); } else { sprintf(str, "Towards start - min %d max %d, finish - min %d, max %d mph", - (int)(2.2f * gProgram_state.AI_vehicles.path_sections[section_no].min_speed[0]), - (int)(2.2f * gProgram_state.AI_vehicles.path_sections[section_no].max_speed[0]), - (int)(2.2f * gProgram_state.AI_vehicles.path_sections[section_no].min_speed[1]), - (int)(2.2f * gProgram_state.AI_vehicles.path_sections[section_no].max_speed[1])); + (int)(2.2 * gProgram_state.AI_vehicles.path_sections[section_no].min_speed[0]), + (int)(2.2 * gProgram_state.AI_vehicles.path_sections[section_no].max_speed[0]), + (int)(2.2 * gProgram_state.AI_vehicles.path_sections[section_no].min_speed[1]), + (int)(2.2 * gProgram_state.AI_vehicles.path_sections[section_no].max_speed[1])); NewTextHeadupSlot(eHeadupSlot_misc, 0, 2000, -1, str); } }