Fixed a problem where values specified with the UserDefaultValue editor key in ZScript were not applied for float/double values

This commit is contained in:
biwa 2021-01-04 13:28:45 +01:00
parent 46962aac89
commit 7cec462a15

View file

@ -942,8 +942,8 @@ namespace CodeImp.DoomBuilder.ZDoom
udefault = sp;
break;
case UniversalType.Float:
float d;
if (!float.TryParse(sp, out d))
double d;
if (!double.TryParse(sp, out d))
{
parser.LogWarning("Incorrect float default from string \"" + sp + "\"");
break;