mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-29 07:12:36 +00:00
- 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:
parent
c700682a36
commit
29f6dd23b9
2 changed files with 2 additions and 2 deletions
|
@ -2382,7 +2382,7 @@ static int PatchCodePtrs (int dummy)
|
||||||
if (!symname.CompareNoCase(MBFCodePointers[i].alias))
|
if (!symname.CompareNoCase(MBFCodePointers[i].alias))
|
||||||
{
|
{
|
||||||
symname = MBFCodePointers[i].name.GetChars();
|
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;
|
ismbfcp = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1688,7 +1688,7 @@ int P_CheckFov(AActor* t1, AActor* t2, double fov)
|
||||||
return absangle(t1->AngleTo(t2), t1->Angles.Yaw) <= 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_SELF_PROLOGUE(AActor);
|
||||||
PARAM_POINTER(t, AActor);
|
PARAM_POINTER(t, AActor);
|
||||||
|
|
Loading…
Reference in a new issue