- moved secret found message to string table and removed the CVAR crutch that dates from a time when modifying string table content wasn't as easy as it is now.

- added 'showsecretsector' CVAR to show the sector number with the secret found message.
This commit is contained in:
Christoph Oelckers 2014-05-29 17:50:14 +02:00
commit 8f5683e23d
5 changed files with 20 additions and 11 deletions

View file

@ -42,8 +42,6 @@
#include "v_font.h"
#include "p_spec.h"
EXTERN_CVAR(String, secretmessage)
class ASecretTrigger : public AActor
{
DECLARE_CLASS (ASecretTrigger, AActor)
@ -62,7 +60,7 @@ void ASecretTrigger::PostBeginPlay ()
void ASecretTrigger::Activate (AActor *activator)
{
P_GiveSecret(activator, args[0] <= 1, (args[0] == 0 || args[0] == 2));
P_GiveSecret(activator, args[0] <= 1, (args[0] == 0 || args[0] == 2), -1);
Destroy ();
}