Skip to content

Commit

Permalink
- fixed missing deprecation warnings for ZScript global variables
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-lysiuk authored and madame-rachelle committed Jun 7, 2019
1 parent 1f69013 commit ae94aa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripting/backend/codegen.cpp
Expand Up @@ -6127,7 +6127,7 @@ FxExpression *FxIdentifier::Resolve(FCompileContext& ctx)
{
if (sym->mVersion <= ctx.Version)
{
if (!(ctx.Function->Variants[0].Flags & VARF_Deprecated) && Wads.GetLumpFile(ctx.Lump) == 0)
if (!(ctx.Function->Variants[0].Flags & VARF_Deprecated) && Wads.GetLumpFile(ctx.Lump) != 0)
{
ScriptPosition.Message(MSG_WARNING, "Accessing deprecated global variable %s - deprecated since %d.%d.%d", sym->SymbolName.GetChars(), vsym->mVersion.major, vsym->mVersion.minor, vsym->mVersion.revision);
}
Expand Down

0 comments on commit ae94aa0

Please sign in to comment.