diff options
| author | Darkelarious <darkelarious@333networks.com> | 2020-12-30 17:25:49 +0000 |
|---|---|---|
| committer | Darkelarious <darkelarious@333networks.com> | 2020-12-30 17:25:49 +0000 |
| commit | 1f894307ede92602f1615dcf8fb0ab75e3ea6447 (patch) | |
| tree | ca1e8e8c95070e93f67e8eefd781a5e91d519d3f /common | |
| parent | 6c9f14e8d2c10584d59a3c24127d95e447dc9ab0 (diff) | |
| download | Simulation-Tools-1f894307ede92602f1615dcf8fb0ab75e3ea6447.tar.gz Simulation-Tools-1f894307ede92602f1615dcf8fb0ab75e3ea6447.zip | |
split long queries in smaller chunks
Diffstat (limited to 'common')
| -rwxr-xr-x | common/status.pl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/common/status.pl b/common/status.pl index 4e9ad28..32cb9e7 100755 --- a/common/status.pl +++ b/common/status.pl @@ -95,11 +95,11 @@ sub getResponse my $reply = ""; for ( 0..$info{numplayers}-1 ) { - $reply .= "\\player_$_\\" .$player{player_}; + $reply .= "\\player_$_\\" .$player{player_}.$_; # Player0 $reply .= "\\frags_$_\\" .$player{frags_}; $reply .= "\\health_$_\\" .$player{health_}; $reply .= "\\deaths_$_\\" .$player{deaths_}; - $reply .= "\\ping_$_\\" .int(rand(400)); # random number! + $reply .= "\\ping_$_\\" .int((rand(400))+24); # random number! $reply .= "\\team_$_\\" .$player{team_}; $reply .= "\\mesh_$_\\" .$player{mesh_}; $reply .= "\\skin_$_\\" .$player{skin_}; @@ -117,11 +117,11 @@ sub getResponse $reply .= "\\" . join '\\', %rules; for ( 0..$info{numplayers}-1 ) { - $reply .= "\\player_$_\\" .$player{player_}; + $reply .= "\\player_$_\\" .$player{player_}.$_; # Player0 $reply .= "\\frags_$_\\" .$player{frags_}; $reply .= "\\health_$_\\" .$player{health_}; $reply .= "\\deaths_$_\\" .$player{deaths_}; - $reply .= "\\ping_$_\\" .int(rand(400)); # random number! + $reply .= "\\ping_$_\\" .int((rand(400))+24); # random number! $reply .= "\\team_$_\\" .$player{team_}; $reply .= "\\mesh_$_\\" .$player{mesh_}; $reply .= "\\skin_$_\\" .$player{skin_}; |
