forked from townforge/townforge
game: don't change turn rate based on ctrl/shift
This commit is contained in:
parent
be8e1224ee
commit
71418e7498
@ -1944,13 +1944,13 @@ void CryptoCityUrho3D::MoveCamera(float timeStep)
|
||||
|
||||
const float turn_rate = exp(Controls::Get().GetTurnRate() / 35.0f);
|
||||
if (IsActionActive(Controls::ACTION_LOOK_DOWN))
|
||||
pitch += KEYBOARD_SENSITIVITY * timeStep * speed * turn_rate;
|
||||
pitch += KEYBOARD_SENSITIVITY * timeStep * turn_rate;
|
||||
if (IsActionActive(Controls::ACTION_LOOK_UP))
|
||||
pitch -= KEYBOARD_SENSITIVITY * timeStep * speed * turn_rate;
|
||||
pitch -= KEYBOARD_SENSITIVITY * timeStep * turn_rate;
|
||||
if (IsActionActive(Controls::ACTION_LOOK_LEFT))
|
||||
yaw -= KEYBOARD_SENSITIVITY * timeStep * speed * turn_rate;
|
||||
yaw -= KEYBOARD_SENSITIVITY * timeStep * turn_rate;
|
||||
if (IsActionActive(Controls::ACTION_LOOK_RIGHT))
|
||||
yaw += KEYBOARD_SENSITIVITY * timeStep * speed * turn_rate;
|
||||
yaw += KEYBOARD_SENSITIVITY * timeStep * turn_rate;
|
||||
|
||||
// Construct new orientation for the camera scene node from yaw and pitch. Roll is fixed to zero
|
||||
camera_->rotate(yaw, pitch, 0.0f, 1.0f);
|
||||
|
Loading…
Reference in New Issue
Block a user