mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 14:51:40 +00:00
- Fixed: The TEXTURES parser didn't report an error for invalid keywords.
- Fixed: The DECORATE expression evaluator was too strict with missing jump labels. For compatibility it only may print a warning, not an error. SVN r1284 (trunk)
This commit is contained in:
parent
f1ae8119ab
commit
e56fef0a8e
3 changed files with 15 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
November 2, 2008 (Changes by Graf Zahl)
|
||||
- Fixed: The TEXTURES parser didn't report an error for invalid keywords.
|
||||
- Fixed: The DECORATE expression evaluator was too strict with missing jump labels.
|
||||
For compatibility it only may print a warning, not an error.
|
||||
|
||||
October 29, 2008 (Changes by Graf Zahl)
|
||||
- Fixed: FxClassTypeCast::Resolve didn't work for NULL classes because a variable
|
||||
was not initialized.
|
||||
|
|
|
@ -596,6 +596,10 @@ void FTextureManager::LoadTextureDefs(int wadnum, const char *lumpname)
|
|||
{
|
||||
ParseXTexture(sc, FTexture::TEX_MiscPatch);
|
||||
}
|
||||
else
|
||||
{
|
||||
sc.ScriptError("Texture definition expected, found '%s'", sc.String);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2634,8 +2634,12 @@ FxExpression *FxMultiNameState::Resolve(FCompileContext &ctx)
|
|||
if (destination == NULL)
|
||||
{
|
||||
ScriptPosition.Message(ctx.lax? MSG_WARNING:MSG_ERROR, "Unknown state jump destination");
|
||||
delete this;
|
||||
return NULL;
|
||||
if (!ctx.lax)
|
||||
{
|
||||
delete this;
|
||||
return NULL;
|
||||
}
|
||||
return this;
|
||||
}
|
||||
FxExpression *x = new FxConstant(destination, ScriptPosition);
|
||||
delete this;
|
||||
|
|
Loading…
Reference in a new issue