- re-applied the changes for p_spec.cpp

This is mostly map loader code which really should not operate on the global level.
This commit is contained in:
Christoph Oelckers 2019-01-24 00:02:51 +01:00
commit ac7a9183aa
12 changed files with 114 additions and 114 deletions

View file

@ -1325,7 +1325,7 @@ DEFINE_ACTION_FUNCTION_NATIVE(AActor, CheckSight, P_CheckSight)
static void GiveSecret(AActor *self, bool printmessage, bool playsound)
{
P_GiveSecret(self, printmessage, playsound, -1);
P_GiveSecret(&level, self, printmessage, playsound, -1);
}
DEFINE_ACTION_FUNCTION_NATIVE(AActor, GiveSecret, GiveSecret)
@ -1333,7 +1333,7 @@ DEFINE_ACTION_FUNCTION_NATIVE(AActor, GiveSecret, GiveSecret)
PARAM_SELF_PROLOGUE(AActor);
PARAM_BOOL(printmessage);
PARAM_BOOL(playsound);
P_GiveSecret(self, printmessage, playsound, -1);
GiveSecret(self, printmessage, playsound);
return 0;
}