Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implements TeleportOpponentToNearestSafeLocation #165

Merged
merged 2 commits into from
Sep 16, 2022

Conversation

dethrace-labs
Copy link
Owner

@dethrace-labs dethrace-labs commented Sep 16, 2022

This is called primarily when an opponent falls off the world.

Fixes #156

@dethrace-labs dethrace-labs changed the title implements TeleportOpponentToNearestSafeLocation Implements TeleportOpponentToNearestSafeLocation Sep 16, 2022
NOT_IMPLEMENTED();

found_safe_place = 0;
section_no = FindNearestPathSection(&pOpponent_spec->car_spec->car_master_actor->t.t.translate.t & direction_v, &intersect, &distance);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you are missing a comma here.

Suggested change
section_no = FindNearestPathSection(&pOpponent_spec->car_spec->car_master_actor->t.t.translate.t & direction_v, &intersect, &distance);
section_no = FindNearestPathSection(&pOpponent_spec->car_spec->car_master_actor->t.t.translate.t, &direction_v, &intersect, &distance);

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep 🤦

Copy link
Collaborator

@madebr madebr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checks out with me!

@dethrace-labs dethrace-labs merged commit 370c7ca into main Sep 16, 2022
@dethrace-labs dethrace-labs deleted the teleportOpponentToNearestSafeLocation branch September 16, 2022 09:19
@dethrace-labs dethrace-labs added the bug Something isn't working label Sep 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TeleportOpponentToNearestSafeLocation not implemented
2 participants