slight oversight..
This commit is contained in:
parent
5ecdf1f0a1
commit
a9f148df97
@ -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;
|
||||||
|
Reference in New Issue
Block a user