Removed check to not send rotation since it fucked up the rotation.

This commit is contained in:
Pontus Fransson 2014-02-20 11:47:18 +01:00
parent d945eea992
commit bdf8c199a3
1 changed files with 1 additions and 1 deletions

View File

@ -328,7 +328,7 @@ void GameState::ReadKeyInput()
static const float mouseSensitivity = Radian( 1.0f ); static const float mouseSensitivity = Radian( 1.0f );
this->privData->camera.PitchDown( this->privData->input->GetPitch() * mouseSensitivity ); this->privData->camera.PitchDown( this->privData->input->GetPitch() * mouseSensitivity );
float yaw = this->privData->input->GetYaw(); float yaw = this->privData->input->GetYaw();
if( yaw != 0.0f ) //if( yaw != 0.0f ) //This made the camera reset to a specific rotation.
{ {
this->privData->nwClient->Send( Protocol_PlayerLeftTurn(yaw * mouseSensitivity) ); this->privData->nwClient->Send( Protocol_PlayerLeftTurn(yaw * mouseSensitivity) );
} }