about summary refs log tree commit diff
path: root/src/game/client
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2010-10-13 12:47:42 +0200
committeroy <Tom_Adams@web.de>2010-10-13 12:47:42 +0200
commite4fe7457c8acdb479e91a79cf832c48d10898be5 (patch)
treee16e3d219060b1f366720c1663ef661086c8224e /src/game/client
parentc828f7d725d9b243e094b44f62a844a9b47790a5 (diff)
downloadzcatch-e4fe7457c8acdb479e91a79cf832c48d10898be5.tar.gz
zcatch-e4fe7457c8acdb479e91a79cf832c48d10898be5.zip
fixed problems with the mouse movement. Closes #214
Diffstat (limited to 'src/game/client')
-rw-r--r--src/game/client/components/emoticon.cpp2
-rw-r--r--src/game/client/gameclient.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/game/client/components/emoticon.cpp b/src/game/client/components/emoticon.cpp
index 9139c2c1..de822b4f 100644
--- a/src/game/client/components/emoticon.cpp
+++ b/src/game/client/components/emoticon.cpp
@@ -102,7 +102,7 @@ void CEmoticon::OnRender()
 	
 	m_WasActive = true;
 	
-	int x, y;
+	float x, y;
 	Input()->MouseRelative(&x, &y);
 
 	m_SelectorMouse.x += x;
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++)
 		{