Skip to content

Creature position update fix#274

Merged
billy1arm merged 1 commit intomangoszero:masterfrom
bozimmerman:creature_pos_fix
Mar 16, 2026
Merged

Creature position update fix#274
billy1arm merged 1 commit intomangoszero:masterfrom
bozimmerman:creature_pos_fix

Conversation

@bozimmerman
Copy link
Contributor

@bozimmerman bozimmerman commented Mar 16, 2026

This fixes InterruptMoving method to update the position correctly for non-players, just like it's done in all of the rest of the code. Honestly, this was not fixing anything important: the mistake would be noticed and corrected later anyway, but when this correction occurred, it logged it, and I just got curious about all those errors in my log and figured out what was going on.


This change is Reviewable

Copilot AI review requested due to automatic review settings March 16, 2026 03:02
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adjusts Unit::InterruptMoving to update server-side position correctly when interrupting spline movement, aligning non-player behavior with other movement update paths and reducing relocation mismatch log noise.

Changes:

  • Updates InterruptMoving to call Map::CreatureRelocation for non-player units instead of Relocate.
  • Keeps Relocate for players (unchanged from before), while splitting behavior by TypeId.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@AppVeyorBot
Copy link

@billy1arm billy1arm merged commit c924060 into mangoszero:master Mar 16, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants