slight oversight..

This commit is contained in:
LIghty 2018-03-24 13:07:04 +01:00
parent 5ecdf1f0a1
commit a9f148df97

View File

@ -101,7 +101,7 @@ void ItemVariable::OnKeyPress(ButtonCode_t key, bool repeat)
return; return;
} }
float change = 0.0f; float change = 1.0f;
switch (catvar.type) switch (catvar.type)
{ {
@ -133,6 +133,7 @@ void ItemVariable::OnKeyPress(ButtonCode_t key, bool repeat)
PutChar(ch); PutChar(ch);
} }
} }
break;
case CV_INT: case CV_INT:
case CV_FLOAT: case CV_FLOAT:
{ {
@ -142,9 +143,6 @@ void ItemVariable::OnKeyPress(ButtonCode_t key, bool repeat)
change = 1.0f; change = 1.0f;
} }
} }
if (catvar.type == CV_STRING)
{
}
if (change < 1.0f && catvar.type == CV_INT) if (change < 1.0f && catvar.type == CV_INT)
change = 1.0f; change = 1.0f;