]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
small bugfix
authorDebugger <pyngot@hotmail.com>
Sat, 27 Apr 2013 10:29:33 +0000 (12:29 +0200)
committerDebugger <pyngot@hotmail.com>
Sat, 27 Apr 2013 10:29:33 +0000 (12:29 +0200)
qcsrc/client/main.qh
qcsrc/client/scoreboard.qc
qcsrc/common/constants.qh

index 8369a5ff20bc9ce399d0eef7c1a35d1063b4d8a9..8cb8c770c7ec0c6f60437cd0e8294921ba0eb3ea 100644 (file)
@@ -54,6 +54,7 @@ float gametype;
 #define SP_CLRATIO -5
 #define SP_PL -6
 #define SP_FRAGS -7
+#define SP_NET -8
 
 #define SP_SEPARATOR -100
 
index f7bb2da9e1d392b56305c7d4fc74a554541f3b18..3c2552472fb4dd3cc3d1aa70ea131e5bac4390de 100644 (file)
@@ -588,7 +588,7 @@ string HUD_GetField(entity pl, float field)
                        return str;
                        
                case SP_NET:
-                       num = pl.(scores[SP_KILLS - SP_SUICIDES +2]);
+                       num = pl.(scores[SP_KILLS]) - pl.(scores[SP_SUICIDES]);
                        denom = pl.(scores[SP_DEATHS]);
 
                        if((num - denom) > 0) {
index 789ee2a737a88218304bb2a438bbb8295dba40a9..c25fb059f6ebc2d52b017541eeb39e084ab4166b 100644 (file)
@@ -272,7 +272,6 @@ const vector eZ = '0 0 1';
 #define SP_DEATHS 1
 #define SP_SUICIDES 2
 #define SP_SCORE 3
-#define SP_NET 4
 // game mode specific indices are not in common/, but in server/scores_rules.qc!
 
 #ifdef COMPAT_XON010_CHANNELS