mirror of
https://git.do.srb2.org/STJr/ZoneBuilder.git
synced 2025-04-22 17:44:06 +00:00
Lua object parser: Object name is now parsed correctly (no more ] at the end of the name)
This commit is contained in:
parent
f4af77e7fa
commit
e7569ff973
1 changed files with 1 additions and 2 deletions
|
@ -85,14 +85,13 @@ namespace CodeImp.DoomBuilder.SRB2
|
|||
if (!string.IsNullOrEmpty(token))
|
||||
{
|
||||
if (!token.StartsWith("mobjinfo[") || !token.EndsWith("]")) continue;
|
||||
string objname = token.Substring(9);
|
||||
string objname = token.Substring(9).TrimEnd(new char[] { ']' });
|
||||
string name = objname;
|
||||
string sprite = DataManager.INTERNAL_PREFIX + "unknownthing";
|
||||
string[] states = new string[8];
|
||||
int mapThingNum = -1;
|
||||
int radius = 0;
|
||||
int height = 0;
|
||||
objname = objname.TrimEnd(new char[] { ']' });
|
||||
|
||||
SkipWhitespace(true);
|
||||
token = ReadToken();
|
||||
|
|
Loading…
Reference in a new issue