From: terencehill Date: Wed, 31 Aug 2016 22:37:51 +0000 (+0200) Subject: Move scoreboard stuff into the scoreboard file X-Git-Tag: xonotic-v0.8.2~631 X-Git-Url: http://git.xonotic.org/?a=commitdiff_plain;h=b127e12b81c493f8cb77e886160722b78a0acee5;p=xonotic%2Fxonotic-data.pk3dir.git Move scoreboard stuff into the scoreboard file --- diff --git a/qcsrc/client/hud/panel/scoreboard.qc b/qcsrc/client/hud/panel/scoreboard.qc index d78bb2e54..f82c7345c 100644 --- a/qcsrc/client/hud/panel/scoreboard.qc +++ b/qcsrc/client/hud/panel/scoreboard.qc @@ -10,6 +10,13 @@ // Scoreboard (#24) +const int MAX_SBT_FIELDS = MAX_SCORE; + +PlayerScoreField sbt_field[MAX_SBT_FIELDS + 1]; +float sbt_field_size[MAX_SBT_FIELDS + 1]; +string sbt_field_title[MAX_SBT_FIELDS + 1]; +int sbt_num_fields; + string autocvar_hud_fontsize; string hud_fontsize_str; diff --git a/qcsrc/client/main.qh b/qcsrc/client/main.qh index 9da754729..0a096f962 100644 --- a/qcsrc/client/main.qh +++ b/qcsrc/client/main.qh @@ -40,13 +40,6 @@ void LoadMenuSkinValues(); // -------------------------------------------------------------------------- // Scoreboard stuff -const int MAX_SBT_FIELDS = MAX_SCORE; - -PlayerScoreField sbt_field[MAX_SBT_FIELDS + 1]; -float sbt_field_size[MAX_SBT_FIELDS + 1]; -string sbt_field_title[MAX_SBT_FIELDS + 1]; -int sbt_num_fields; - vector hud_fontsize; float RANKINGS_RECEIVED_CNT;