mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-23 04:12:12 +00:00
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:
parent
46962aac89
commit
7cec462a15
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue