Replaced "banned by ruleset" with " " when reporting player counts.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2667 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Molgrum 2007-09-22 18:09:12 +00:00
parent 79d348a9e5
commit 415ec86dc9

View file

@ -937,7 +937,7 @@ static void CountNearbyPlayers(qboolean dead)
static char *Macro_CountNearbyEnemyPlayers (void)
{
if (!ruleset_allow_playercount.value)
return "banned by ruleset";
return " ";
CountNearbyPlayers(false);
sprintf(macro_buf, "\xffz%d\xff", vars.numenemies);
suppress = true;
@ -948,7 +948,7 @@ static char *Macro_CountNearbyEnemyPlayers (void)
static char *Macro_Count_Last_NearbyEnemyPlayers (void)
{
if (!ruleset_allow_playercount.value)
return "banned by ruleset";
return " ";
if (vars.deathtrigger_time && realtime - vars.deathtrigger_time <= 5)
{
sprintf(macro_buf, "\xffz%d\xff", vars.last_numenemies);
@ -966,7 +966,7 @@ static char *Macro_Count_Last_NearbyEnemyPlayers (void)
static char *Macro_CountNearbyFriendlyPlayers (void)
{
if (!ruleset_allow_playercount.value)
return "banned by ruleset";
return " ";
CountNearbyPlayers(false);
sprintf(macro_buf, "\xffz%d\xff", vars.numfriendlies);
suppress = true;
@ -977,7 +977,7 @@ static char *Macro_CountNearbyFriendlyPlayers (void)
static char *Macro_Count_Last_NearbyFriendlyPlayers (void)
{
if (!ruleset_allow_playercount.value)
return "banned by ruleset";
return " ";
if (vars.deathtrigger_time && realtime - vars.deathtrigger_time <= 5)
{
sprintf(macro_buf, "\xffz%d\xff", vars.last_numfriendlies);