Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-04-28 17:16:50 +0000
committerStijn Buys <ingar@osirion.org>2008-04-28 17:16:50 +0000
commite63cce2346dec6f34efd6daf5fde50bd2b1c45d3 (patch)
tree0a5f2b2d8a13e6aa61d0c865c48d66cd98366bb7 /src/client
parent84d474fd3bd78f5ba6dcee65323f267fa8061b03 (diff)
fix camera orientation, adjust pitch rotation to video aspect
Diffstat (limited to 'src/client')
-rw-r--r--src/client/camera.cc2
-rw-r--r--src/client/input.cc2
2 files changed, 2 insertions, 2 deletions
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 );
}
}