diff options
| author | oy <Tom_Adams@web.de> | 2010-10-09 13:33:33 +0200 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2010-10-09 13:33:33 +0200 |
| commit | ab2df146410e47bc4d30d1088b383aac03766d6f (patch) | |
| tree | 4c4e1b3373d0d3db7843bb2bc174d031463d85e2 /src/game | |
| parent | 85b9c60158adee3aae6d02a9e5529ea57ed39611 (diff) | |
| download | zcatch-ab2df146410e47bc4d30d1088b383aac03766d6f.tar.gz zcatch-ab2df146410e47bc4d30d1088b383aac03766d6f.zip | |
made INT_STEP properties in the editor just change by 1
Diffstat (limited to 'src/game')
| -rw-r--r-- | src/game/editor/ed_editor.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
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; } } |