Skip to content

Commit

Permalink
- fixed compilation errors
Browse files Browse the repository at this point in the history
src/scripting/decorate/thingdef_parse.cpp:80:11: error: no viable conversion from 'const FName' to 'FString'
src/scripting/zscript/zcc_compile.cpp:1359:26: error: use of undeclared identifier 'Name_globalfreeze'; did you mean 'NAME_globalfreeze'?
  • Loading branch information
alexey-lysiuk committed Jan 12, 2019
1 parent ed14951 commit c1a4158
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/scripting/decorate/thingdef_parse.cpp
Expand Up @@ -77,7 +77,7 @@ PClassActor *DecoDerivedClass(const FScriptPosition &sc, PClassActor *parent, FN
if (type == nullptr)
{
FString newname = typeName.GetChars();
FString sourcefile = sc.FileName;
FString sourcefile = sc.FileName.GetChars();

sourcefile.Substitute(":", "@");
newname << '@' << sourcefile;
Expand Down Expand Up @@ -1342,4 +1342,4 @@ void ParseAllDecorate()
auto ns = Namespaces.NewNamespace(sc.LumpNum);
ParseDecorate(sc, ns);
}
}
}
2 changes: 1 addition & 1 deletion src/scripting/zscript/zcc_compile.cpp
Expand Up @@ -1356,7 +1356,7 @@ bool ZCCCompiler::CompileFields(PContainerType *type, TArray<ZCC_VarDeclarator *
{
f->mVersion = field->Version;
}
if (name->Name == Name_globalfreeze) // Give the parser a kick in the butt for not parsing the declaration properly. I have no idea why it doesn't work.
if (name->Name == NAME_globalfreeze) // Give the parser a kick in the butt for not parsing the declaration properly. I have no idea why it doesn't work.
{
f->mVersion = MakeVersion(3, 8, 0);
f->Flags |= VARF_Deprecated;
Expand Down

0 comments on commit c1a4158

Please sign in to comment.