]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix compilation units
authorterencehill <piuntn@gmail.com>
Fri, 12 Mar 2021 18:15:36 +0000 (19:15 +0100)
committerterencehill <piuntn@gmail.com>
Fri, 12 Mar 2021 18:15:36 +0000 (19:15 +0100)
qcsrc/server/race.qh
qcsrc/server/world.qc
qcsrc/server/world.qh

index ab565e4381c1c31259e01ce3496343ae71af96bf..acf35b2b0a89e09ed1a4e4634b85a50de6cb3e46 100644 (file)
@@ -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;
 
index b61f75ceb7068f00bf85b76a05a88f04a016dac9..dff0f06bfa2a515122b6e82581b28650b084c3e9 100644 (file)
@@ -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();
 
index e79a6f9df3ac4dfaf3ee936b504f0e94293fb6aa..bdaac8c271e5ae08f79af6ba5f32e02fa8fb717c 100644 (file)
@@ -45,6 +45,8 @@ string modname;
 
 string gamemode_name;
 
+string record_type;
+
 string clientstuff;
 
 string matchid;