From ab2df146410e47bc4d30d1088b383aac03766d6f Mon Sep 17 00:00:00 2001 From: oy Date: Sat, 9 Oct 2010 13:33:33 +0200 Subject: made INT_STEP properties in the editor just change by 1 --- src/game/editor/ed_editor.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/game') diff --git a/src/game/editor/ed_editor.cpp b/src/game/editor/ed_editor.cpp index 5f4347ec..270f3efd 100644 --- a/src/game/editor/ed_editor.cpp +++ b/src/game/editor/ed_editor.cpp @@ -1592,18 +1592,12 @@ int CEditor::DoProperties(CUIRect *pToolBox, CProperty *pProps, int *pIds, int * if(DoButton_ButtonDec(&pIds[i], 0, 0, &Dec, 0, Localize("Decrease"))) { - if(Input()->KeyPressed(KEY_LSHIFT) || Input()->KeyPressed(KEY_RSHIFT)) - *pNewVal = pProps[i].m_Value-5; - else - *pNewVal = pProps[i].m_Value-1; + *pNewVal = pProps[i].m_Value-1; Change = i; } if(DoButton_ButtonInc(((char *)&pIds[i])+1, 0, 0, &Inc, 0, Localize("Increase"))) { - if(Input()->KeyPressed(KEY_LSHIFT) || Input()->KeyPressed(KEY_RSHIFT)) - *pNewVal = pProps[i].m_Value+5; - else - *pNewVal = pProps[i].m_Value+1; + *pNewVal = pProps[i].m_Value+1; Change = i; } } -- cgit 1.4.1