Skip to content

Commit

Permalink
Fix cops initialization in InitOpponents (#402)
Browse files Browse the repository at this point in the history
Originally spotted by Bartosz Kurczyński (https://github.com/b-kurczynsk)
  • Loading branch information
madebr authored Jul 29, 2024
1 parent 90971e9 commit 361eca4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/DETHRACE/common/opponent.c
Original file line number Diff line number Diff line change
Expand Up @@ -2533,11 +2533,12 @@ void InitOpponents(tRace_info* pRace_info) {
gProgram_state.AI_vehicles.cops[i].pursue_from_start = 0;
gProgram_state.AI_vehicles.cops[i].cheating = 0;
gProgram_state.AI_vehicles.cops[i].murder_reported = 0;
gProgram_state.AI_vehicles.cops[i].finished_for_this_race = 0;
gProgram_state.AI_vehicles.cops[i].knackeredness_detected = 0;
gProgram_state.AI_vehicles.cops[i].players_section_when_last_calced_full_path = -1;
gProgram_state.AI_vehicles.cops[i].nnext_sections = 0;
gProgram_state.AI_vehicles.cops[i].new_objective_required = 1;
gProgram_state.AI_vehicles.cops[i].current_objective = eOOT_none;
gProgram_state.AI_vehicles.cops[i].has_moved_at_some_point = 0;
gProgram_state.AI_vehicles.cops[i].player_in_view_now = 0;
gProgram_state.AI_vehicles.cops[i].acknowledged_piv = 0;
gProgram_state.AI_vehicles.cops[i].nastiness = (gProgram_state.skill_level / 2.f
Expand Down

0 comments on commit 361eca4

Please sign in to comment.