- fixed compilation with GCC and Clang

src/playsim/p_maputl.cpp:1691:42: error: too many arguments provided to function-like macro invocation
src/gamedata/d_dehacked.cpp:2385:62: error: cannot pass non-trivial object of type 'FString' to variadic function;
This commit is contained in:
alexey.lysiuk 2021-07-01 09:24:33 +03:00
parent c700682a36
commit 29f6dd23b9
2 changed files with 2 additions and 2 deletions

View file

@ -2382,7 +2382,7 @@ static int PatchCodePtrs (int dummy)
if (!symname.CompareNoCase(MBFCodePointers[i].alias))
{
symname = MBFCodePointers[i].name.GetChars();
DPrintf(DMSG_SPAMMY, "%s --> %s\n", MBFCodePointers[i].alias, MBFCodePointers[i].name.GetChars());
DPrintf(DMSG_SPAMMY, "%s --> %s\n", MBFCodePointers[i].alias.GetChars(), MBFCodePointers[i].name.GetChars());
ismbfcp = true;
break;
}

View file

@ -1688,7 +1688,7 @@ int P_CheckFov(AActor* t1, AActor* t2, double fov)
return absangle(t1->AngleTo(t2), t1->Angles.Yaw) <= fov;
}
DEFINE_ACTION_FUNCTION(AActor, CheckFov, P_CheckFov)
DEFINE_ACTION_FUNCTION_NATIVE(AActor, CheckFov, P_CheckFov)
{
PARAM_SELF_PROLOGUE(AActor);
PARAM_POINTER(t, AActor);