about summary refs log tree commit diff
path: root/src/game/client
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2011-06-29 18:39:58 +0200
committeroy <Tom_Adams@web.de>2011-06-29 18:39:58 +0200
commit8035e022fdefbf5ebbdd9a92d79fe7c3f1a76bdb (patch)
tree5cf61d56b66feeface2b05b04bda9fa2bc1a74b8 /src/game/client
parentfdf6db5fd6ba56cc4cb1993b0ca8153a890c769f (diff)
downloadzcatch-8035e022fdefbf5ebbdd9a92d79fe7c3f1a76bdb.tar.gz
zcatch-8035e022fdefbf5ebbdd9a92d79fe7c3f1a76bdb.zip
fixed cursor positioning by mouse in edit boxes
Diffstat (limited to 'src/game/client')
-rw-r--r--src/game/client/components/menus.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/client/components/menus.cpp b/src/game/client/components/menus.cpp
index 9bd59730..d6d3d9fc 100644
--- a/src/game/client/components/menus.cpp
+++ b/src/game/client/components/menus.cpp
@@ -209,7 +209,7 @@ int CMenus::DoEditBox(void *pID, const CUIRect *pRect, char *pStr, unsigned StrS
 
 			for(int i = 1; i <= Len; i++)
 			{
-				if(TextRender()->TextWidth(0, FontSize, pStr, i) - *Offset + 10 > MxRel)
+				if(TextRender()->TextWidth(0, FontSize, pStr, i) - *Offset > MxRel)
 				{
 					s_AtIndex = i - 1;
 					break;