mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-05-31 09:21:36 +00:00
- fixed code generation bug with bad class names in DECORATE.
- print attenuation info with 'listlights' CCMD.
This commit is contained in:
parent
33d36157c8
commit
d506b2e6a1
2 changed files with 8 additions and 4 deletions
|
@ -10528,8 +10528,12 @@ FxExpression *FxClassTypeCast::Resolve(FCompileContext &ctx)
|
|||
ScriptPosition.Message(MSG_OPTERROR,
|
||||
"Unknown class name '%s' of type '%s'",
|
||||
clsname.GetChars(), desttype->TypeName.GetChars());
|
||||
delete this;
|
||||
return nullptr;
|
||||
// When originating from DECORATE this must pass, when in ZScript it's an error that must abort the code generation here.
|
||||
if (!ctx.FromDecorate)
|
||||
{
|
||||
delete this;
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue