From 5bcba4498e2934d44ae3b15d047be5eff5e7afb1 Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Fri, 12 Sep 2008 07:20:26 +0000 Subject: fixed timeout --- src/game/client/gameclient.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/game/client/gameclient.cpp') diff --git a/src/game/client/gameclient.cpp b/src/game/client/gameclient.cpp index 9c13c107..fe9b0476 100644 --- a/src/game/client/gameclient.cpp +++ b/src/game/client/gameclient.cpp @@ -216,10 +216,13 @@ void GAMECLIENT::dispatch_input() // handle mouse movement int x=0, y=0; inp_mouse_relative(&x, &y); - for(int h = 0; h < input.num; h++) + if(x || y) { - if(input.components[h]->on_mousemove(x, y)) - break; + for(int h = 0; h < input.num; h++) + { + if(input.components[h]->on_mousemove(x, y)) + break; + } } // handle key presses -- cgit 1.4.1