Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[12443] Prevent annoying client freezes
It appears it is possible for the client freezes if movement of stunned mobs is sent (combined flags of SPLINE_ENABLED and SPLINE_ROOTED). This fix cannot be considered proper, but there should be no sideeffects. HUGE thanks for kid10 figuring the source of some of these freezes by manually testing individual commits. Unexpected source(*) is [12225] (ec67729) (*) Well, the thing that made these freezes visual... - I consider these source to be older and much better hidden!
- Loading branch information
1d04658
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can confirm that this will also fix the issue described here: cmangos/issues#163
Thanks.
1d04658
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks guys.
1d04658
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SilverIce can you take a look at this?
To my reasoning there are problems with npcs sending MONSTER_MOVE packages while they are stunned/rooted/dead and similar.
It appears some of the MONSTER_MOVE packages are actually triggered by Unit::StopMoving (for an already stopped creature)
A possible way to test this behaviour:
1d04658
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ew. let me remember all this stuff..
the less or more proper way to root the unit would stop unit inside SetRoot method and then send root packet.
and skip movement inside MoveSplineinit::Launch if root flag is enabled.
It may look weird but blizzs using the same technique.
i'll be able explain this later
[added]
seems i haven't understand that "can you take a look at this" part..