GetOpponentsSectionWidth matching

This commit is contained in:
Dethrace Labs 2025-10-03 14:59:44 +13:00 committed by Dethrace Engineering Department
parent 8e28b7aee2
commit 22c747d3f1
1 changed files with 2 additions and 4 deletions

View File

@ -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;