From: Debugger Date: Sat, 27 Apr 2013 10:29:33 +0000 (+0200) Subject: small bugfix X-Git-Tag: xonotic-v0.8.0~347^2~7 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=453802ddaf5974ed257b3df194850389c9d2978c;p=xonotic%2Fxonotic-data.pk3dir.git small bugfix --- diff --git a/qcsrc/client/main.qh b/qcsrc/client/main.qh index 8369a5ff2..8cb8c770c 100644 --- a/qcsrc/client/main.qh +++ b/qcsrc/client/main.qh @@ -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 diff --git a/qcsrc/client/scoreboard.qc b/qcsrc/client/scoreboard.qc index f7bb2da9e..3c2552472 100644 --- a/qcsrc/client/scoreboard.qc +++ b/qcsrc/client/scoreboard.qc @@ -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) { diff --git a/qcsrc/common/constants.qh b/qcsrc/common/constants.qh index 789ee2a73..c25fb059f 100644 --- a/qcsrc/common/constants.qh +++ b/qcsrc/common/constants.qh @@ -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