Skip to content

Commit

Permalink
Fix conditional in CalcRaceRoute (#223)
Browse files Browse the repository at this point in the history
  • Loading branch information
madebr committed Nov 1, 2022
1 parent 2ade8f6 commit 1052cc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DETHRACE/common/opponent.c
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ void CalcRaceRoute(tOpponent_spec* pOpponent_spec) {
} else if (race_section_count == 0 && gProgram_state.AI_vehicles.path_sections[section_no].node_indices[0] == node_no) {
temp_section_array[normal_section_ok_direction_count] = section_no;
normal_section_ok_direction_count++;
} else if (race_section_count == 0 && normal_section_ok_direction_count == 0 && (!gProgram_state.AI_vehicles.path_sections[section_no].one_way || gProgram_state.AI_vehicles.path_sections[section_no].node_indices[1] == node_no)) {
} else if (race_section_count == 0 && normal_section_ok_direction_count == 0 && (!gProgram_state.AI_vehicles.path_sections[section_no].one_way || gProgram_state.AI_vehicles.path_sections[section_no].node_indices[1] != node_no)) {
temp_section_array[normal_section_wrong_direction_count] = section_no;
normal_section_wrong_direction_count++;
}
Expand Down

0 comments on commit 1052cc1

Please sign in to comment.