Merged in pricetx/hlstatsx-community-edition (pull request #3)
Make player counts ingame and on the web page actually show the same figure
This commit is contained in:
commit
438760408e
@ -92,7 +92,6 @@ sub getTotalPlayers
|
|||||||
WHERE
|
WHERE
|
||||||
game=?
|
game=?
|
||||||
AND hideranking = 0
|
AND hideranking = 0
|
||||||
AND kills >= 1
|
|
||||||
";
|
";
|
||||||
my $resultTotalPlayers = &::execCached("get_game_total_players", $query, &::quoteSQL($self->{game}));
|
my $resultTotalPlayers = &::execCached("get_game_total_players", $query, &::quoteSQL($self->{game}));
|
||||||
my ($totalplayers) = $resultTotalPlayers->fetchrow_array;
|
my ($totalplayers) = $resultTotalPlayers->fetchrow_array;
|
||||||
|
@ -60,6 +60,7 @@ For support and installation notes visit http://www.hlxcommunity.com
|
|||||||
hlstats_Players
|
hlstats_Players
|
||||||
WHERE
|
WHERE
|
||||||
game='$game'
|
game='$game'
|
||||||
|
AND hideranking = 0
|
||||||
";
|
";
|
||||||
$result = $db->query($query);
|
$result = $db->query($query);
|
||||||
list($total_players) = $db->fetch_row($result);
|
list($total_players) = $db->fetch_row($result);
|
||||||
|
Loading…
Reference in New Issue
Block a user