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-05-11 08:39:40 +0000
committerStijn Buys <ingar@osirion.org>2008-05-11 08:39:40 +0000
commitfb227d62e699ebaea6e428f570bedc684873f15b (patch)
tree8a2a8e9ee4681479bcbd4828bdf7d6f76d5a1be1 /src/client
parent17e9ce54ee3972b9804174b874652ec0856efcd0 (diff)
fix movement in local game, fix camera cockpit mode offset
Diffstat (limited to 'src/client')
-rw-r--r--src/client/camera.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/camera.cc b/src/client/camera.cc
index c4a60b0..29310fc 100644
--- a/src/client/camera.cc
+++ b/src/client/camera.cc
@@ -179,7 +179,7 @@ void draw(float seconds)
if (mode == Track) {
if (core::localcontrol()->state() && core::localcontrol()->model()) {
- target -= (core::localcontrol()->model()->maxbbox().x + 0.1f) * core::localcontrol()->state()->axis().forward();
+ target -= (core::localcontrol()->model()->maxbbox().x + 0.15f) * core::localcontrol()->state()->axis().forward();
target += (core::localcontrol()->model()->maxbbox().z + 0.3f ) *
core::localcontrol()->state()->axis().up();
@@ -208,7 +208,7 @@ void draw(float seconds)
} else if (mode == Cockpit) {
if (core::localcontrol()->state() && core::localcontrol()->model())
- target += core::localcontrol()->model()->maxbbox().x *
+ target += (core::localcontrol()->model()->maxbbox().x+0.05) *
core::localcontrol()->state()->axis().forward();
distance = 0.0f;