mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-23 04:12:12 +00:00
Fixed: FAIL medal sprite in zandronum.pk3 was not parsed correctly
This commit is contained in:
parent
4611aa1bc8
commit
87a2a14d7c
3 changed files with 18 additions and 4 deletions
|
@ -30,6 +30,6 @@ using CodeImp.DoomBuilder;
|
|||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
[assembly: AssemblyVersion("2.3.0.2933")]
|
||||
[assembly: AssemblyVersion("2.3.0.2934")]
|
||||
[assembly: NeutralResourcesLanguageAttribute("en")]
|
||||
[assembly: AssemblyHash("717e48e")]
|
||||
[assembly: AssemblyHash("4611aa1")]
|
||||
|
|
|
@ -30,9 +30,23 @@ namespace CodeImp.DoomBuilder.ZDoom
|
|||
if ((token == "loop") || (token == "stop") || (token == "wait") || (token == "fail"))
|
||||
{
|
||||
// Ignore flow control
|
||||
// [ZZ] sometimes "fail" is a sprite name... (Skulltag, Zandronum)
|
||||
// probably the same can happen to other single-word flow control keywords.
|
||||
|
||||
// check if next token is newline.
|
||||
long cpos = parser.DataStream.Position;
|
||||
parser.SkipWhitespace(false);
|
||||
string newline = parser.ReadToken();
|
||||
parser.DataStream.Position = cpos;
|
||||
if (newline == "\n") // this is actually a loop/stop/wait/fail directive and not a sprite name or something
|
||||
{
|
||||
lasttoken = token;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
// Goto?
|
||||
else if (token == "goto")
|
||||
if (token == "goto")
|
||||
{
|
||||
gotostate = new DecorateStateGoto(actor, parser);
|
||||
if (parser.HasError) return;
|
||||
|
|
|
@ -29,5 +29,5 @@ using System.Resources;
|
|||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
[assembly: AssemblyVersion("2.3.0.2933")]
|
||||
[assembly: AssemblyVersion("2.3.0.2934")]
|
||||
[assembly: NeutralResourcesLanguageAttribute("en")]
|
||||
|
|
Loading…
Reference in a new issue