From e4fe7457c8acdb479e91a79cf832c48d10898be5 Mon Sep 17 00:00:00 2001 From: oy Date: Wed, 13 Oct 2010 12:47:42 +0200 Subject: fixed problems with the mouse movement. Closes #214 --- src/game/client/gameclient.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/game/client/gameclient.cpp') diff --git a/src/game/client/gameclient.cpp b/src/game/client/gameclient.cpp index df6eb889..4728cd73 100644 --- a/src/game/client/gameclient.cpp +++ b/src/game/client/gameclient.cpp @@ -304,9 +304,9 @@ void CGameClient::OnInit() void CGameClient::DispatchInput() { // handle mouse movement - int x=0, y=0; + float x = 0.0f, y = 0.0f; Input()->MouseRelative(&x, &y); - if(x || y) + if(x != 0.0f || y != 0.0f) { for(int h = 0; h < m_Input.m_Num; h++) { -- cgit 1.4.1