diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-09-12 07:20:26 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-09-12 07:20:26 +0000 |
| commit | 5bcba4498e2934d44ae3b15d047be5eff5e7afb1 (patch) | |
| tree | 209a8f2e7265dadba0b593223cdb8f3014a71c71 /src/game/client/gameclient.cpp | |
| parent | 39c01e7f11bda0e9efc3e0a17c40b60d72b1afc3 (diff) | |
| download | zcatch-5bcba4498e2934d44ae3b15d047be5eff5e7afb1.tar.gz zcatch-5bcba4498e2934d44ae3b15d047be5eff5e7afb1.zip | |
fixed timeout
Diffstat (limited to 'src/game/client/gameclient.cpp')
| -rw-r--r-- | src/game/client/gameclient.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
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 |