about summary refs log tree commit diff
path: root/src/game/editor
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2010-07-18 13:44:30 +0200
committeroy <Tom_Adams@web.de>2010-07-18 13:44:30 +0200
commitbc8274f48bd161037a0f7dc119a61daac77606d0 (patch)
treeab398b0886ed8428e2db44e010c40feab59d6803 /src/game/editor
parent97204482e2880da3474df6e0d6b3e2decf9c26e5 (diff)
downloadzcatch-bc8274f48bd161037a0f7dc119a61daac77606d0.tar.gz
zcatch-bc8274f48bd161037a0f7dc119a61daac77606d0.zip
fixed last commit
Diffstat (limited to 'src/game/editor')
-rw-r--r--src/game/editor/ed_editor.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/game/editor/ed_editor.cpp b/src/game/editor/ed_editor.cpp
index 2bad1d2a..015b9946 100644
--- a/src/game/editor/ed_editor.cpp
+++ b/src/game/editor/ed_editor.cpp
@@ -2595,13 +2595,12 @@ void CEditor::RenderEnvelopeEditor(CUIRect View)
 							
 							if(Input()->KeyPressed(KEY_LSHIFT) || Input()->KeyPressed(KEY_RSHIFT))
 							{
-								if((Input()->KeyPressed(KEY_LCTRL) || Input()->KeyPressed(KEY_RCTRL)))
-									pEnvelope->m_lPoints[i].m_Time += (int)((m_MouseDeltaX));
-								else
-									pEnvelope->m_lPoints[i].m_Time += (int)((m_MouseDeltaX*TimeScale)*1000.0f);
-									
 								if(i != 0)
 								{
+									if((Input()->KeyPressed(KEY_LCTRL) || Input()->KeyPressed(KEY_RCTRL)))
+										pEnvelope->m_lPoints[i].m_Time += (int)((m_MouseDeltaX));
+									else
+										pEnvelope->m_lPoints[i].m_Time += (int)((m_MouseDeltaX*TimeScale)*1000.0f);
 									if(pEnvelope->m_lPoints[i].m_Time < pEnvelope->m_lPoints[i-1].m_Time)
 										pEnvelope->m_lPoints[i].m_Time = pEnvelope->m_lPoints[i-1].m_Time + 1;
 									if(i+1 != pEnvelope->m_lPoints.size() && pEnvelope->m_lPoints[i].m_Time > pEnvelope->m_lPoints[i+1].m_Time)