Fix detection for resuce droid on jump start; close #84

This commit is contained in:
Dominic Szablewski 2023-09-24 15:21:06 +02:00
parent 6451b70356
commit 58c84c8a3c

View file

@ -389,7 +389,7 @@ void ship_player_update_race(ship_t *self) {
vec3_t best_path = vec3_project_to_ray(self->position, next->center, self->section->center); vec3_t best_path = vec3_project_to_ray(self->position, next->center, self->section->center);
vec3_t distance = vec3_sub(best_path, self->position); vec3_t distance = vec3_sub(best_path, self->position);
if (distance.y > 0) { if (distance.y > -512) {
distance.y = distance.y * 0.0001; distance.y = distance.y * 0.0001;
} }
else { else {