From 453802ddaf5974ed257b3df194850389c9d2978c Mon Sep 17 00:00:00 2001 From: Debugger Date: Sat, 27 Apr 2013 12:29:33 +0200 Subject: [PATCH] small bugfix --- qcsrc/client/main.qh | 1 + qcsrc/client/scoreboard.qc | 2 +- qcsrc/common/constants.qh | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.2