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

Use typed tripoints in npcmove and adjacent code #76623

Merged
merged 1 commit into from
Sep 25, 2024

Conversation

mqrause
Copy link
Contributor

@mqrause mqrause commented Sep 23, 2024

Summary

None

Purpose of change

Typed tripoints.

Describe the solution

Convert tripoints mostly to tripoint_bub_ms.
Added a method to get the midpoint between an arbitrary number of points.

Describe alternatives you've considered

Testing

Spawned an NPC, watched it seek out the nearest shelter, made it follow me around, fight some zombies, sort some loot. Everything seemed normal.

Additional context

@github-actions github-actions bot added NPC / Factions NPCs, AI, Speech, Factions, Ownership [C++] Changes (can be) made in C++. Previously named `Code` json-styled JSON lint passed, label assigned by github actions astyled astyled PR, label is assigned by github actions labels Sep 23, 2024
@github-actions github-actions bot added the Code: Tests Measurement, self-control, statistics, balancing. label Sep 23, 2024
@mqrause mqrause marked this pull request as ready for review September 23, 2024 22:47
@github-actions github-actions bot added the BasicBuildPassed This PR builds correctly, label assigned by github actions label Sep 24, 2024
Copy link
Contributor

@PatrikLundell PatrikLundell left a comment

Choose a reason for hiding this comment

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

Looked at all the changes without finding anything suspect, but rather the expected tedium. The automatic stuff complains about improvements to error messages and wants some other operation, something I have no opinion on, but guess those demands have to be met regardless.

@mqrause mqrause force-pushed the typed_npcmove branch 2 times, most recently from 80e8012 to cee23e2 Compare September 24, 2024 15:18
Copy link
Member

@akrieger akrieger left a comment

Choose a reason for hiding this comment

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

I did not look at npcmove.cpp.

src/point.h Outdated Show resolved Hide resolved
@github-actions github-actions bot removed the BasicBuildPassed This PR builds correctly, label assigned by github actions label Sep 24, 2024
@mqrause mqrause force-pushed the typed_npcmove branch 2 times, most recently from 67cb33a to c6a2802 Compare September 25, 2024 11:45
@kevingranade kevingranade merged commit aef3bcb into CleverRaven:master Sep 25, 2024
25 of 26 checks passed
@mqrause mqrause deleted the typed_npcmove branch September 25, 2024 23:15
@github-actions github-actions bot added the BasicBuildPassed This PR builds correctly, label assigned by github actions label Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions [C++] Changes (can be) made in C++. Previously named `Code` Code: Tests Measurement, self-control, statistics, balancing. json-styled JSON lint passed, label assigned by github actions NPC / Factions NPCs, AI, Speech, Factions, Ownership
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants