From c3d90b226bdd83592d08704aa918f155f4c757e2 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Fri, 18 Jul 2008 22:07:46 +0000 Subject: reset spacedust on ship change, audio distance model changes (should fix win32 ui sound dissapearing in the distance) --- src/client/input.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/client/input.cc') diff --git a/src/client/input.cc b/src/client/input.cc index da20456..3d9caa5 100644 --- a/src/client/input.cc +++ b/src/client/input.cc @@ -15,7 +15,7 @@ #include "render/camera.h" #include "math/functions.h" #include "render/text.h" - +#include "render/draw.h" #include "SDL/SDL.h" namespace client @@ -346,6 +346,7 @@ void action_release(std::string const &action) void frame(float seconds) { if (core::localcontrol() && (last_control != core::localcontrol()->id())) { + local_direction = 0.0f; local_pitch = 0.0f; local_roll = 0.0f; @@ -357,6 +358,8 @@ void frame(float seconds) mouse_y = video::height / 2; render::Camera::reset(); cl_mousecontrol_override = false; + + render::reset(); } SDL_Event event; -- cgit v1.2.3