[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:
Yaki Khadafi 2012-08-10 13:25:56 +03:00 committed by Antz
parent f592231863
commit cfae212258
9 changed files with 32 additions and 30 deletions

View file

@ -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)