mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 22:37:02 +00:00
[0048] Enable SMSG_MONSTER_MOVE, CMSG_SET_SELECTION and send normalized orientation in update and movement packets for client to react normally.
Signed-off-by: Yaki Khadafi <ElSolDolLo@gmail.com>
This commit is contained in:
parent
f592231863
commit
cfae212258
9 changed files with 32 additions and 30 deletions
|
|
@ -362,7 +362,7 @@ void MovementInfo::Write(ByteBuffer& data, uint16 opcode) const
|
|||
break;
|
||||
case MSEPositionO:
|
||||
if (si.hasOrientation)
|
||||
data << float(pos.o);
|
||||
data << float(NormalizeOrientation(pos.o));
|
||||
break;
|
||||
case MSEPitch:
|
||||
if (si.hasPitch)
|
||||
|
|
@ -401,7 +401,7 @@ void MovementInfo::Write(ByteBuffer& data, uint16 opcode) const
|
|||
break;
|
||||
case MSETransportPositionO:
|
||||
if (hasTransportData)
|
||||
data << float(t_pos.o);
|
||||
data << float(NormalizeOrientation(t_pos.o));
|
||||
break;
|
||||
case MSETransportPositionX:
|
||||
if (hasTransportData)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue