Apparently FU is a valid constant

This commit is contained in:
spherallic 2024-01-31 22:08:30 +01:00
parent 96028766f8
commit cde9ac0cfd
2 changed files with 2 additions and 2 deletions

View file

@ -121,7 +121,7 @@ namespace CodeImp.DoomBuilder.ZDoom
private static string ReadFracunit(string input)
{
if (input.Contains("FRACUNIT") || input.Contains("FRACBITS"))
if (input.Contains("FRACUNIT") || input.Contains("FRACBITS") || input.Contains("FU"))
return new string(input.Where(c => char.IsDigit(c)).ToArray());
else
return (Int32.Parse(input) >> 16).ToString();

View file

@ -117,7 +117,7 @@ namespace CodeImp.DoomBuilder.ZDoom
private static string ReadFracunit(string input)
{
if (input.Contains("FRACUNIT") || input.Contains("FRACBITS"))
if (input.Contains("FRACUNIT") || input.Contains("FRACBITS") || input.Contains("FU"))
return new string(input.Where(c => char.IsDigit(c)).ToArray());
else
return (int.Parse(input) >> 16).ToString();