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

Fix issue with waypoint updates #1907

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lostsquirrel1
Copy link
Collaborator

@lostsquirrel1 lostsquirrel1 commented Jan 19, 2025

Fixes #1878. Zero-K makes a call in repsonse to Arrived event, which changes a waypoint and I failed to account for that in the last change.

Also removed unused member variable.

@@ -991,7 +990,7 @@ void CGroundMoveType::StopMoving(bool callScript, bool hardStop, bool cancelRaw)
LOG_L(L_DEBUG, "[%s] stopping engine for unit %i", __func__, owner->id);

if (!atGoal)
goalPos = (currWayPoint = Here());
earlyCurrWayPoint = (goalPos = (currWayPoint = Here()));
Copy link
Collaborator

Choose a reason for hiding this comment

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

That's becoming a fairly long chain of assignments. It's fine though and probably still more readable than the alternatives.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2025.01.2 Queued raw moves resulting in walking in circles
2 participants