mirror of
https://github.com/ZDoom/Raze.git
synced 2025-05-30 17:01:03 +00:00
- backend update from GZDoom.
Fixes: * do not strip 'filter' as a directory prefix. * proper spacing for scaled sheet fonts. * fix of transparent color in BMF fonts. * fix restart button on error pane in Windows. * do not skip over empty 'if's with a condition that would error out.
This commit is contained in:
parent
888f8888bb
commit
8106d788f6
10 changed files with 34 additions and 13 deletions
|
@ -9823,6 +9823,8 @@ FxExpression *FxIfStatement::Resolve(FCompileContext &ctx)
|
|||
{
|
||||
CHECKRESOLVED();
|
||||
|
||||
SAFE_RESOLVE(Condition, ctx);
|
||||
|
||||
if (WhenTrue == nullptr && WhenFalse == nullptr)
|
||||
{ // We don't do anything either way, so disappear
|
||||
delete this;
|
||||
|
@ -9830,8 +9832,6 @@ FxExpression *FxIfStatement::Resolve(FCompileContext &ctx)
|
|||
return new FxNop(ScriptPosition);
|
||||
}
|
||||
|
||||
SAFE_RESOLVE(Condition, ctx);
|
||||
|
||||
if (Condition->ValueType != TypeBool)
|
||||
{
|
||||
Condition = new FxBoolCast(Condition, false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue