Skip to content

Wasted COP keeps knackeredness_detected == 1 and does not chase in any future race. #401

Closed
@b-kurczynski

Description

@b-kurczynski

After cop car is wasted its knackeredness_detected is not reset to 0 before next race thus a cop car occupying the same slot is not active in any future race (the same map or any other), although, it can be wasted again.

I believe, somewhere here:
https://github.com/dethrace-labs/dethrace/blob/main/src/DETHRACE/common/opponent.c#L2534

the following line is missing:

+   gProgram_state.AI_vehicles.cops[i].knackeredness_detected = 0;

As the function is quite long, it could be this line got lost during reverse engineering. I do not know where precisely it should be placed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions