From e63cce2346dec6f34efd6daf5fde50bd2b1c45d3 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Mon, 28 Apr 2008 17:16:50 +0000 Subject: fix camera orientation, adjust pitch rotation to video aspect --- src/client/camera.cc | 2 +- src/client/input.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/client') diff --git a/src/client/camera.cc b/src/client/camera.cc index c66a933..fa81356 100644 --- a/src/client/camera.cc +++ b/src/client/camera.cc @@ -46,7 +46,7 @@ float pitch_current; float pitch_overview; // default pitch in mode::Track -const float pitch_track = 15.0f; +const float pitch_track = -15.0f; // default rotate offset increase/decrease float rotate_offset_inc; diff --git a/src/client/input.cc b/src/client/input.cc index 99fe638..d10c8bc 100644 --- a/src/client/input.cc +++ b/src/client/input.cc @@ -280,7 +280,7 @@ void frame(float seconds) core::localcontrol()->set_thrust(local_thrust); core::localcontrol()->set_direction(local_turn); - core::localcontrol()->set_pitch(local_pitch); + core::localcontrol()->set_pitch(local_pitch / video::aspect ); } } -- cgit v1.2.3