about summary refs log tree commit diff
path: root/src/game/editor
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2010-06-02 20:50:48 +0200
committeroy <Tom_Adams@web.de>2010-06-02 20:50:48 +0200
commit7a1953e60b58544144986d30cb30acfab6e0d465 (patch)
tree69a4fe85d1f8bae2b99fa463d32e31173b18a7bd /src/game/editor
parent25408a102bc4f48af62f67d69566195778b94359 (diff)
downloadzcatch-7a1953e60b58544144986d30cb30acfab6e0d465.tar.gz
zcatch-7a1953e60b58544144986d30cb30acfab6e0d465.zip
added fix for editor quad editing by ghost91 Closes #18
Diffstat (limited to 'src/game/editor')
-rw-r--r--src/game/editor/ed_editor.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/game/editor/ed_editor.cpp b/src/game/editor/ed_editor.cpp
index b2b3e1ca..387ce104 100644
--- a/src/game/editor/ed_editor.cpp
+++ b/src/game/editor/ed_editor.cpp
@@ -1029,6 +1029,14 @@ void CEditor::DoQuadPoint(CQuad *q, int QuadIndex, int v)
 			s_Operation = OP_CONTEXT_MENU;
 			m_SelectedQuad = QuadIndex;
 			UI()->SetActiveItem(pId);
+			if(!(m_SelectedPoints&(1<<v)))

+			{

+				if(Input()->KeyPressed(KEY_LSHIFT) || Input()->KeyPressed(KEY_RSHIFT))

+					m_SelectedPoints |= 1<<v;

+				else

+					m_SelectedPoints = 1<<v;

+				s_Moved = true;

+			}
 		}
 	}
 	else