Skip to content

remove redundant waypoint position by delegating to the game object#7339

Open
Goober5000 wants to merge 1 commit intoscp-fs2open:masterfrom
Goober5000:claude/waypoint_position
Open

remove redundant waypoint position by delegating to the game object#7339
Goober5000 wants to merge 1 commit intoscp-fs2open:masterfrom
Goober5000:claude/waypoint_position

Conversation

@Goober5000
Copy link
Copy Markdown
Contributor

The waypoint class stored its position in m_position separately from the game object's pos field, requiring callers to manually keep both in sync. Now get_pos() and set_pos() delegate to the object position when the game object exists, falling back to the parsed position only if the object does not exist.

The waypoint class stored its position in m_position separately from the game object's pos field, requiring callers to manually keep both in sync. Now get_pos() and set_pos() delegate to the object position when the game object exists, falling back to the parsed position only if the object does not exist.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Goober5000 Goober5000 added the cleanup A modification or rewrite of code to make it more understandable or easier to maintain. label Apr 1, 2026
Copy link
Copy Markdown
Member

@wookieejedi wookieejedi left a comment

Choose a reason for hiding this comment

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

Makes sense and looks good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cleanup A modification or rewrite of code to make it more understandable or easier to maintain.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants