CopStartPointInfo effectively matching

This commit is contained in:
Dethrace Labs 2025-10-09 09:32:51 +13:00 committed by Dethrace Engineering Department
parent 4701aa0910
commit 57796d8b87
1 changed files with 2 additions and 2 deletions

View File

@ -4741,10 +4741,10 @@ void CopStartPointInfo(void) {
} else {
for (i = 0; i < gProgram_state.AI_vehicles.number_of_cops; i++) {
BrVector3Sub(&car_to_point, &gSelf->t.t.translate.t, &gProgram_state.AI_vehicles.cop_start_points[i]);
distance = BrVector3LengthSquared(&car_to_point);
distance = BrVector3Length(&car_to_point);
if (distance < closest_distance) {
closest = i;
closest_distance = distance;
closest = i;
}
}
if (closest < 0 || closest_distance > 10.f) {