Skip to content

Commit ff61445

Browse files
committed
Fix (daemon): Fix hlds rcon not getting sv_visiblemaxplayers value
1 parent 4164b01 commit ff61445

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/BASTARDrcon.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ sub getVisiblePlayers
351351
{
352352
# "sv_visiblemaxplayers" = "-1"
353353
# - Overrides the max players reported to prospective clients
354-
if ($line =~ /^\s*"sv_visiblemaxplayers"\s*=\s*"([-0-9]+)".*$/x)
354+
if ($line =~ /^\s*"sv_visiblemaxplayers"\s*(?:=|is)\s*"([-0-9]+)".*$/x)
355355
{
356356
$max_players = $1;
357357
}

0 commit comments

Comments
 (0)