ProcessCompleteRace matching

This commit is contained in:
Dethrace Labs 2025-10-10 17:08:46 +13:00
parent 7f2c20de50
commit 4b1afc1618
1 changed files with 5 additions and 10 deletions

View File

@ -918,18 +918,13 @@ void ProcessCompleteRace(tOpponent_spec* pOpponent_spec, tProcess_objective_comm
ShiftOpponentsProjectedRoute(pOpponent_spec, pOpponent_spec->follow_path_data.section_no - 20000);
pOpponent_spec->follow_path_data.section_no = 20000;
}
if (pOpponent_spec->nnext_sections != 0) {
res = ProcessFollowPath(pOpponent_spec, ePOC_run, 0, 0, 0);
if (res != eFPR_end_of_path) {
goto skip_new_objective;
}
if (!pOpponent_spec->nnext_sections
|| (res = ProcessFollowPath(pOpponent_spec, ePOC_run, 0, 0, 0)) == eFPR_end_of_path) {
dr_dprintf("%s: Giving up following race path because ran out of race path", pOpponent_spec->car_spec->driver_name);
NewObjective(pOpponent_spec, eOOT_get_near_player);
}
dr_dprintf("%s: Giving up following race path because ran out of race path", pOpponent_spec->car_spec->driver_name);
NewObjective(pOpponent_spec, eOOT_get_near_player);
skip_new_objective:
if (res != eFPR_OK) {
if (res == eFPR_given_up) {
dr_dprintf("%s: Giving up complete_race because ProcessFollowPath() gave up", pOpponent_spec->car_spec->driver_name);