about summary refs log tree commit diff
path: root/src/game
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2010-10-13 20:21:13 +0200
committeroy <Tom_Adams@web.de>2010-10-13 20:21:13 +0200
commitbe315edfc052a5aa1c7d9d48394e0997a989c8ae (patch)
treec5f7b16a6e369a4184185ffe61cc10da2cf232f5 /src/game
parent5801326ebcea91909349c8dc543f108c6d0ebcb8 (diff)
downloadzcatch-be315edfc052a5aa1c7d9d48394e0997a989c8ae.tar.gz
zcatch-be315edfc052a5aa1c7d9d48394e0997a989c8ae.zip
fixed clamping mousepos in the editor
Diffstat (limited to 'src/game')
-rw-r--r--src/game/editor/ed_editor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/editor/ed_editor.cpp b/src/game/editor/ed_editor.cpp
index 8d1be882..287a77e9 100644
--- a/src/game/editor/ed_editor.cpp
+++ b/src/game/editor/ed_editor.cpp
@@ -3217,8 +3217,8 @@ void CEditor::UpdateAndRender()
 			s_MouseY += ry;
 		}
 
-		clamp(s_MouseX, 0.0f, UI()->Screen()->w);
-		clamp(s_MouseY, 0.0f, UI()->Screen()->h);
+		s_MouseX = clamp(s_MouseX, 0.0f, UI()->Screen()->w);
+		s_MouseY = clamp(s_MouseY, 0.0f, UI()->Screen()->h);
 
 		// update the ui
 		mx = s_MouseX;