From f5266b403c50cb2b6d712e6d8f41b62ad2433efb Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Thu, 1 May 2008 12:41:31 +0000 Subject: lights --- src/client/camera.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/client/camera.cc') diff --git a/src/client/camera.cc b/src/client/camera.cc index d264ddf..e2dbacf 100644 --- a/src/client/camera.cc +++ b/src/client/camera.cc @@ -25,6 +25,7 @@ namespace camera // gameworld coordinates of the camera target math::Vector3f target; math::Vector3f eye; +math::Axis axis; // target yaw, angle in XZ plane, positive is looking left float yaw_target; @@ -130,7 +131,6 @@ void next_mode() void draw(float elapsed) { math::Matrix4f matrix; - math::Axis axis; float d = 0; @@ -158,7 +158,7 @@ void draw(float elapsed) if (mode == Track) { // make the camera swing while turning - yaw_target = 25 * core::localcontrol()->target_direction; + yaw_target = -25.0f * core::localcontrol()->target_direction; pitch_target = pitch_track - 25 * core::localcontrol()->target_pitch; } -- cgit v1.2.3