diff options
author | Stijn Buys <ingar@osirion.org> | 2008-07-18 22:07:46 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-07-18 22:07:46 +0000 |
commit | c3d90b226bdd83592d08704aa918f155f4c757e2 (patch) | |
tree | dd9ef9b9ebec66c707744de05ad39fd8918452fa /src/client/input.cc | |
parent | 2698d8cd1d28cd9649fcfe35a3397d52b28f1b34 (diff) |
reset spacedust on ship change, audio distance model changes (should fix win32 ui sound dissapearing in the distance)
Diffstat (limited to 'src/client/input.cc')
-rw-r--r-- | src/client/input.cc | 5 |
1 files changed, 4 insertions, 1 deletions
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; |