Fix IsValidDecimalNumber(), it wasn't allowing dash or period

This commit is contained in:
adelikat 2013-09-28 20:32:19 +00:00
parent 15ad1d3234
commit 9b37a6c79f
1 changed files with 7 additions and 1 deletions

View File

@ -259,8 +259,14 @@ namespace BizHawk
public static bool IsValidDecimalNumber(char c)
{
if (c < 48 || c > 58) //45 = dash, 46 = dot
if (c == 45 || c == 46) //45 = dash, 46 = dot
{
return true;
}
else if (c < 48 || c > 58)
{
return false;
}
return true;
}