Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-07-29 19:36:51 +0000
committerStijn Buys <ingar@osirion.org>2008-07-29 19:36:51 +0000
commitceedc716cb0fe1e0360d2dd9e37a67ff726c4f0b (patch)
treec09228a09ea78a735c13d371659420fb3e51e754 /src/client
parent8b356bcd3cab06db7a47f464bffef7a1b62f2d30 (diff)
first attempt at auto-leveling
Diffstat (limited to 'src/client')
-rw-r--r--src/client/input.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/input.cc b/src/client/input.cc
index aaf83fa..044ebc2 100644
--- a/src/client/input.cc
+++ b/src/client/input.cc
@@ -618,6 +618,7 @@ void frame(float seconds)
if (core::application()->connected() && core::localcontrol()) {
mouse_control = !console()->visible() && ((input_mousecontrol->value() > 0) || mouse_control_override);
+ core::localcontrol()->set_autolevel(!mouse_control);
if (mouse_control) {
// the mouse will not react if it is in the deadzone