]> de.git.xonotic.org Git - xonotic/xonstat.git/commitdiff
Merge pull request #29 from antzucaro/frag-matrix-breakfix
authorAnt Zucaro <azucaro@gmail.com>
Sun, 22 Oct 2017 17:34:52 +0000 (13:34 -0400)
committerGitHub <noreply@github.com>
Sun, 22 Oct 2017 17:34:52 +0000 (13:34 -0400)
If no frag matrix row is found, show zeros.

xonstat/templates/frag_matrix.mako

index 7c1c5ceebc49496d423264fd3db7f306d89d6db2..47663c2bbed6b9295e89aaf3ed1da072f22ff0eb 100644 (file)
       else:
         victim_index = "-1"
     %>
+
+    % if pgfm:
     <td>${pgfm.matrix.get(victim_index, 0)}</td>
+    % else:
+    <td>0</td>
+    % endif
     % endfor
   </tr>
   % endfor