Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/input.cc')
-rw-r--r--src/client/input.cc5
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;