diff options
author | Stijn Buys <ingar@osirion.org> | 2008-07-29 19:36:51 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-07-29 19:36:51 +0000 |
commit | ceedc716cb0fe1e0360d2dd9e37a67ff726c4f0b (patch) | |
tree | c09228a09ea78a735c13d371659420fb3e51e754 /src/client | |
parent | 8b356bcd3cab06db7a47f464bffef7a1b62f2d30 (diff) |
first attempt at auto-leveling
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/input.cc | 1 |
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 |