mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-01-31 04:40:55 +00:00
DECALDEF parser: fixed a problem where opening curly braces in the same line as a decal definition caused a parsing error
This commit is contained in:
parent
3fbad3c8ac
commit
cbedfb24b5
1 changed files with 11 additions and 4 deletions
|
@ -25,6 +25,7 @@
|
|||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
@ -104,13 +105,19 @@ namespace CodeImp.DoomBuilder.ZDoom
|
|||
return false;
|
||||
}
|
||||
|
||||
SkipWhitespace(false);
|
||||
SkipWhitespace(true);
|
||||
|
||||
token = ReadToken();
|
||||
|
||||
// Try to read the optional decal id
|
||||
token = ReadToken();
|
||||
if(!string.IsNullOrEmpty(token))
|
||||
if (token == "{")
|
||||
{
|
||||
ReadSignedInt(token, ref decalid);
|
||||
datastream.Seek(-token.Length - 1, SeekOrigin.Current);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!string.IsNullOrEmpty(token))
|
||||
ReadSignedInt(token, ref decalid);
|
||||
}
|
||||
|
||||
SkipWhitespace(true);
|
||||
|
|
Loading…
Reference in a new issue