ProcessCompleteRace matching
This commit is contained in:
parent
7f2c20de50
commit
4b1afc1618
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue