mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 04:37:00 +00:00
[9210] Fix visual bug making npc run-in-same-position in client.
Not send MOVEMENTFLAG_FORWARD (even if expected). As result npc will not run in same position when npc becomes visible at client side. Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
e1d0c1cdba
commit
de4d8c3a04
2 changed files with 5 additions and 4 deletions
|
|
@ -263,14 +263,15 @@ void Object::BuildMovementUpdate(ByteBuffer * data, uint16 flags, uint32 flags2)
|
||||||
{
|
{
|
||||||
flags2 = MOVEMENTFLAG_NONE;
|
flags2 = MOVEMENTFLAG_NONE;
|
||||||
|
|
||||||
if (!((Creature*)this)->IsStopped())
|
// disabled, makes them run-in-same-place before movement generator updated once.
|
||||||
flags2 |= MOVEMENTFLAG_FORWARD; // not set if not really moving
|
/*if (((Creature*)this)->hasUnitState(UNIT_STAT_MOVING))
|
||||||
|
flags2 |= MOVEMENTFLAG_FORWARD;*/ // not set if not really moving
|
||||||
|
|
||||||
if (((Creature*)this)->canFly())
|
if (((Creature*)this)->canFly())
|
||||||
{
|
{
|
||||||
flags2 |= MOVEMENTFLAG_LEVITATING; // (ok) most seem to have this
|
flags2 |= MOVEMENTFLAG_LEVITATING; // (ok) most seem to have this
|
||||||
|
|
||||||
if (((Creature*)this)->IsStopped())
|
if (!((Creature*)this)->hasUnitState(UNIT_STAT_MOVING))
|
||||||
flags2 |= MOVEMENTFLAG_FLY_UNK1; // (ok) possibly some "hover" mode
|
flags2 |= MOVEMENTFLAG_FLY_UNK1; // (ok) possibly some "hover" mode
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "9209"
|
#define REVISION_NR "9210"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue