From: terencehill Date: Fri, 12 Mar 2021 18:15:36 +0000 (+0100) Subject: Fix compilation units X-Git-Tag: xonotic-v0.8.5~512^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=00fd225b0e1975e6ea3d17bc1af8215f9d6f6556;p=xonotic%2Fxonotic-data.pk3dir.git Fix compilation units --- diff --git a/qcsrc/server/race.qh b/qcsrc/server/race.qh index ab565e438..acf35b2b0 100644 --- a/qcsrc/server/race.qh +++ b/qcsrc/server/race.qh @@ -4,9 +4,6 @@ bool autocvar_g_allow_checkpoints; float race_teams; -// default to RACE_RECORD, can be overwritten by gamemodes -string record_type = RACE_RECORD; - // scores const float ST_RACE_LAPS = 1; diff --git a/qcsrc/server/world.qc b/qcsrc/server/world.qc index b61f75ceb..dff0f06bf 100644 --- a/qcsrc/server/world.qc +++ b/qcsrc/server/world.qc @@ -755,6 +755,9 @@ spawnfunc(worldspawn) cvar_changes_init(); // do this very early now so it REALLY matches the server config + // default to RACE_RECORD, can be overwritten by gamemodes + record_type = RACE_RECORD; + // needs to be done so early because of the constants they create static_init(); diff --git a/qcsrc/server/world.qh b/qcsrc/server/world.qh index e79a6f9df..bdaac8c27 100644 --- a/qcsrc/server/world.qh +++ b/qcsrc/server/world.qh @@ -45,6 +45,8 @@ string modname; string gamemode_name; +string record_type; + string clientstuff; string matchid;