Merge pull request #369 from LightyPonce/cathook-NCC

Fix enums unable to be changed
This commit is contained in:
BenCat07 2018-03-24 14:59:18 +01:00 committed by GitHub
commit c0dc2d7cfb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;