compilation error fixes
This commit is contained in:
parent
d972bd7685
commit
cd4e5ae0ec
|
@ -319,11 +319,9 @@ void GameState::ReadKeyInput()
|
||||||
|
|
||||||
//send delta mouse movement
|
//send delta mouse movement
|
||||||
{
|
{
|
||||||
this->privData->camera.YawRight( this->privData->input->GetYaw() * 0.017f );
|
static const float mouseSensitivity = Radian( 1.0f );
|
||||||
this->privData->camera.PitchDown( this->privData->input->GetPitch() * 0.017f );
|
this->privData->camera.PitchDown( this->privData->input->GetPitch() * mouseSensitivity );
|
||||||
this->privData->camera.UpdateOrientation();
|
this->privData->nwClient->Send( Protocol_PlayerLeftTurn(this->privData->input->GetYaw() * mouseSensitivity) );
|
||||||
|
|
||||||
privData->nwClient->Send( Protocol_PlayerLook(this->privData->camera.GetLook(), this->privData->camera.GetRight()) );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// shoot
|
// shoot
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
#include "GamingUI.h"
|
#include "GamingUI.h"
|
||||||
#include <Protocols.h>
|
#include <Protocols.h>
|
||||||
|
#include "Utilities.h"
|
||||||
|
|
||||||
using namespace ::DanBias::Client;
|
using namespace ::DanBias::Client;
|
||||||
using namespace ::Oyster::Network;
|
using namespace ::Oyster::Network;
|
||||||
using namespace ::GameLogic;
|
using namespace ::GameLogic;
|
||||||
|
using namespace ::Utility::Value;
|
||||||
|
|
||||||
GamingUI::GamingUI() :
|
GamingUI::GamingUI() :
|
||||||
GameStateUI()
|
GameStateUI()
|
||||||
|
@ -92,11 +94,9 @@ void GamingUI::ReadKeyInput()
|
||||||
|
|
||||||
//send delta mouse movement
|
//send delta mouse movement
|
||||||
{
|
{
|
||||||
this->camera->YawRight( this->input->GetYaw() * 0.017f );
|
static const float mouseSensitivity = Radian( 1.0f );
|
||||||
this->camera->PitchDown( this->input->GetPitch() * 0.017f );
|
this->camera->PitchDown( this->input->GetPitch() * mouseSensitivity );
|
||||||
this->camera->UpdateOrientation();
|
this->netClient->Send( Protocol_PlayerLeftTurn(this->input->GetYaw() * mouseSensitivity) );
|
||||||
|
|
||||||
this->netClient->Send( Protocol_PlayerLook(this->camera->GetLook(), this->camera->GetRight()) );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// shoot
|
// shoot
|
||||||
|
|
Loading…
Reference in New Issue