From d54692f388d317434a580cb366da569798787f70 Mon Sep 17 00:00:00 2001 From: pricetx Date: Wed, 8 Jul 2015 07:27:22 +0000 Subject: [PATCH 1/2] Only count players who have not elected to hide their rank for the player statistics at the top of the web page. --- web/pages/game.php | 1 + 1 file changed, 1 insertion(+) diff --git a/web/pages/game.php b/web/pages/game.php index eb87044..9722398 100644 --- a/web/pages/game.php +++ b/web/pages/game.php @@ -60,6 +60,7 @@ For support and installation notes visit http://www.hlxcommunity.com hlstats_Players WHERE game='$game' + AND hideranking = 0 "; $result = $db->query($query); list($total_players) = $db->fetch_row($result); From 4959b0f8a6b7aad479a0999062c1bdfd7006c17f Mon Sep 17 00:00:00 2001 From: pricetx Date: Wed, 8 Jul 2015 07:28:47 +0000 Subject: [PATCH 2/2] Remove check for players having at least one kill, to make the ingame player count match the player count on the web page. --- scripts/HLstats_Game.pm | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/HLstats_Game.pm b/scripts/HLstats_Game.pm index 32a2d96..cf6303d 100644 --- a/scripts/HLstats_Game.pm +++ b/scripts/HLstats_Game.pm @@ -92,7 +92,6 @@ sub getTotalPlayers WHERE game=? AND hideranking = 0 - AND kills >= 1 "; my $resultTotalPlayers = &::execCached("get_game_total_players", $query, &::quoteSQL($self->{game})); my ($totalplayers) = $resultTotalPlayers->fetchrow_array;