mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-01-19 15:01:11 +00:00
Apparently FU is a valid constant
This commit is contained in:
parent
96028766f8
commit
cde9ac0cfd
2 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue