From ceedc716cb0fe1e0360d2dd9e37a67ff726c4f0b Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Tue, 29 Jul 2008 19:36:51 +0000 Subject: first attempt at auto-leveling --- src/client/input.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'src/client/input.cc') 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 -- cgit v1.2.3