diff options
author | Stijn Buys <ingar@osirion.org> | 2008-11-09 17:44:24 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-11-09 17:44:24 +0000 |
commit | 06212c7d8dc20b11f49d54e42f8299740f90a231 (patch) | |
tree | af179e6015cb86be61ee640154fde1d70967d919 /src/render | |
parent | f0ba130494173d01c6e800c95e19dc1826ddc68e (diff) |
improved client notifications, minor bugfixes
Diffstat (limited to 'src/render')
-rw-r--r-- | src/render/camera.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/render/camera.cc b/src/render/camera.cc index 4544b75..c7749c4 100644 --- a/src/render/camera.cc +++ b/src/render/camera.cc @@ -232,10 +232,11 @@ void Camera::frame(float seconds) if (core::localplayer()->view()) { // player view entity - camera_target.assign(core::localplayer()->view()->location()); + distance = math::max(core::localplayer()->view()->radius(), 1.0f) * 3.0f; camera_axis.assign(core::localplayer()->view()->axis()); camera_axis.change_direction(180.0f); - distance = math::max(core::localplayer()->view()->radius(), 1.0f) * 2.0f; + camera_target.assign(core::localplayer()->view()->location() - core::localplayer()->view()->axis().left()* (math::max(core::localplayer()->view()->radius(), 1.0f)*0.5f) ); + /* } else if (core::localplayer()->zone()->default_view()) { // default zone view entity |