From aac92bc20ed8210fd9cda828af207a7fa6859dcd Mon Sep 17 00:00:00 2001 From: lindaandersson Date: Thu, 16 Jan 2014 09:30:16 +0100 Subject: [PATCH] GL- send new player pos to client --- Code/Game/DanBiasServer/GameSession/GameSession_Events.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Code/Game/DanBiasServer/GameSession/GameSession_Events.cpp b/Code/Game/DanBiasServer/GameSession/GameSession_Events.cpp index fb897211..7819187a 100644 --- a/Code/Game/DanBiasServer/GameSession/GameSession_Events.cpp +++ b/Code/Game/DanBiasServer/GameSession/GameSession_Events.cpp @@ -47,7 +47,7 @@ namespace DanBias case protocol_Gameplay_PlayerNavigation: { - Oyster::Math::Float4x4 world = Oyster::Math::Matrix::identity; + //Oyster::Math::Float4x4 world = Oyster::Math::Matrix::identity; if(p[1].value.netBool) //bool bForward; //world.v[3].x = 2; c->GetPlayer()->Move(GameLogic::PLAYER_MOVEMENT_FORWARD); @@ -60,6 +60,10 @@ namespace DanBias if(p[6].value.netBool) //bool bStrafeLeft; //world.v[3].y = -2; c->GetPlayer()->Move(GameLogic::PLAYER_MOVEMENT_LEFT); + + Oyster::Math::Float4x4 world = c->GetPlayer()->GetOrientation(); + Protocol_ObjectPosition p(world, 1); + Send(p.GetProtocol()); } break; case protocol_Gameplay_PlayerMouseMovement: