diff options
| author | oy <Tom_Adams@web.de> | 2010-10-13 20:21:13 +0200 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2010-10-13 20:21:13 +0200 |
| commit | be315edfc052a5aa1c7d9d48394e0997a989c8ae (patch) | |
| tree | c5f7b16a6e369a4184185ffe61cc10da2cf232f5 /src/game/editor | |
| parent | 5801326ebcea91909349c8dc543f108c6d0ebcb8 (diff) | |
| download | zcatch-be315edfc052a5aa1c7d9d48394e0997a989c8ae.tar.gz zcatch-be315edfc052a5aa1c7d9d48394e0997a989c8ae.zip | |
fixed clamping mousepos in the editor
Diffstat (limited to 'src/game/editor')
| -rw-r--r-- | src/game/editor/ed_editor.cpp | 4 |
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; |