Minor tweak to hCharacterMovement()

This commit is contained in:
Kayne Ruse
2015-03-13 19:36:03 +11:00
parent d2bb3575fc
commit 954213f1ff
3 changed files with 9 additions and 3 deletions
+5
View File
@@ -212,6 +212,11 @@ void ServerApplication::hCharacterMovement(CharacterPacket* const argPacket) {
//check if moving rooms
if (characterData->GetRoomIndex() != argPacket->roomIndex) {
//set the character's origin and motion
characterData->SetOrigin(argPacket->origin);
characterData->SetMotion(argPacket->motion);
//send the delete & create messages
pumpAndChangeRooms(characterData, argPacket->roomIndex, argPacket->characterIndex);
}
//if not moving between rooms