Merge pull request #369 from LightyPonce/cathook-NCC
Fix enums unable to be changed
This commit is contained in:
commit
c0dc2d7cfb
@ -101,7 +101,7 @@ void ItemVariable::OnKeyPress(ButtonCode_t key, bool repeat)
|
||||
return;
|
||||
}
|
||||
|
||||
float change = 0.0f;
|
||||
float change = 1.0f;
|
||||
|
||||
switch (catvar.type)
|
||||
{
|
||||
@ -133,6 +133,7 @@ void ItemVariable::OnKeyPress(ButtonCode_t key, bool repeat)
|
||||
PutChar(ch);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case CV_INT:
|
||||
case CV_FLOAT:
|
||||
{
|
||||
@ -142,9 +143,6 @@ void ItemVariable::OnKeyPress(ButtonCode_t key, bool repeat)
|
||||
change = 1.0f;
|
||||
}
|
||||
}
|
||||
if (catvar.type == CV_STRING)
|
||||
{
|
||||
}
|
||||
|
||||
if (change < 1.0f && catvar.type == CV_INT)
|
||||
change = 1.0f;
|
||||
|
Reference in New Issue
Block a user