diff options
| author | oy <Tom_Adams@web.de> | 2010-07-18 13:44:30 +0200 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2010-07-18 13:44:30 +0200 |
| commit | bc8274f48bd161037a0f7dc119a61daac77606d0 (patch) | |
| tree | ab398b0886ed8428e2db44e010c40feab59d6803 /src/game/editor | |
| parent | 97204482e2880da3474df6e0d6b3e2decf9c26e5 (diff) | |
| download | zcatch-bc8274f48bd161037a0f7dc119a61daac77606d0.tar.gz zcatch-bc8274f48bd161037a0f7dc119a61daac77606d0.zip | |
fixed last commit
Diffstat (limited to 'src/game/editor')
| -rw-r--r-- | src/game/editor/ed_editor.cpp | 9 |
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) |