From 212ae53758753ffcc06d5f7895521d3c2d198b7e 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 6533ab0e..c82b8a82 100644 --- a/src/DETHRACE/common/opponent.c +++ b/src/DETHRACE/common/opponent.c @@ -3015,11 +3015,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;