trigger_endsection: Add support for the 'master' key

This commit is contained in:
Marco Cawthorne 2020-08-28 22:38:48 +02:00
parent ffca4e14b9
commit 9d5b1fb1a8

View file

@ -32,7 +32,10 @@ class trigger_endsection:CBaseTrigger
void
trigger_endsection::Trigger(entity act, int state)
{
localcmd("disconnect\n");
if (GetMaster() == FALSE)
return;
localcmd("echo disconnect\n");
}
/* TODO: Make this redundant */