From 22c747d3f15994362d243bcd3065bcc600a408ab Mon Sep 17 00:00:00 2001 From: Dethrace Labs <78985374+dethrace-labs@users.noreply.github.com> Date: Fri, 3 Oct 2025 14:59:44 +1300 Subject: [PATCH] GetOpponentsSectionWidth matching --- src/DETHRACE/common/opponent.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/DETHRACE/common/opponent.c b/src/DETHRACE/common/opponent.c index 5feeb88d..e8bdd51c 100644 --- a/src/DETHRACE/common/opponent.c +++ b/src/DETHRACE/common/opponent.c @@ -3014,11 +3014,9 @@ br_scalar GetOpponentsSectionWidth(tOpponent_spec* pOpponent_spec, tS16 pSection if (pSection >= 20000 && pSection - 20000 < pOpponent_spec->nnext_sections) { return gProgram_state.AI_vehicles.path_sections[pOpponent_spec->next_sections[pSection - 20000].section_no].width; - } - if (pSection >= 15000) { + } else if (pSection >= 15000) { return 0.5f; - } - if (pSection == 10000) { + } else if (pSection == 10000) { return pOpponent_spec->pursue_car_data.direct_line_section.width; } return gProgram_state.AI_vehicles.path_sections[pSection].width;