about summary refs log tree commit diff
path: root/src/game/client
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2010-08-16 02:21:18 +0200
committeroy <Tom_Adams@web.de>2010-08-16 02:21:18 +0200
commitabc84ac0b0ff77b3b30a20252f86332c699e4466 (patch)
tree4ed487066f87aaac06b28ffd749f94126b169cd9 /src/game/client
parent4c2dcc4f2b5f061a1d75aa2aa0b316c4b86bc1d8 (diff)
downloadzcatch-abc84ac0b0ff77b3b30a20252f86332c699e4466.tar.gz
zcatch-abc84ac0b0ff77b3b30a20252f86332c699e4466.zip
added fixes for compiler errors and warnings by sworddragon
Diffstat (limited to 'src/game/client')
-rw-r--r--src/game/client/components/chat.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/client/components/chat.cpp b/src/game/client/components/chat.cpp
index 898cd30f..7b64aac7 100644
--- a/src/game/client/components/chat.cpp
+++ b/src/game/client/components/chat.cpp
@@ -203,7 +203,7 @@ void CChat::OnRender()
 		TextRender()->TextEx(&Cursor, m_Input.GetString()+m_Input.GetCursorOffset(), -1);
 	}
 
-	y -= 8;
+	y -= 8.0f;
 
 	int i;
 	int64 Now = time_get();
@@ -225,7 +225,7 @@ void CChat::OnRender()
 		y -= Cursor.m_Y + Cursor.m_FontSize;
 
 		// cut off if msgs waste too much space
-		int HeightLimit = m_Show ? 0.0f : 200.0f;
+		float HeightLimit = m_Show ? 0.0f : 200.0f;
 		if(y < HeightLimit)
 			break;