Skip to content
Snippets Groups Projects
Commit a70993d6 authored by proller's avatar proller
Browse files

Masterserver mods fix

parent 0a2de78d
No related branches found
No related tags found
No related merge requests found
......@@ -51,7 +51,7 @@ function success(r) {
h += '<td class="mts_clients">' + e(s.clients) + (s.clients_max ? '/' + e(s.clients_max) : '') + (s.clients_top ? ', ' + s.clients_top : '') + '</td>';
var mods;
if (s.mods && jQuery.isArray(s.mods)) {
mods = 1;
mods = s.mods.length;
}
h += '<td class="mts_version' + (mods ? ' mts_ismods' : '') + '">' + e(s.version) + ' ' + e(s.gameid);
if (mods) {
......
......@@ -235,7 +235,7 @@ sub request (;$) {
$param->{first} ||= $old->{first} || $old->{time} || $param->{time};
$param->{clients_top} = $old->{clients_top} if $old->{clients_top} > $param->{clients};
$param->{clients_top} ||= $param->{clients} || 0;
$param->{mods} ||= $old->{mods} unless $param->{action} ~~ 'start';
$param->{mods} ||= $old->{mods} if $old->{mods} and !($param->{action} ~~ 'start');
delete $param->{action};
$listk->{$param->{key}} = $param;
#printlog Dumper $param;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment