From 0b1ca19ef720c16744c2a646fb85adf2bbd59462 Mon Sep 17 00:00:00 2001 From: Xylemon Date: Mon, 24 Apr 2023 22:10:09 -0700 Subject: [PATCH] Make parse data respect the newely implemented scimax cvar --- src/server/progs.src | 1 + src/server/shdata_parse.qc | 7 ++----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/server/progs.src b/src/server/progs.src index 230c9df..2b6df36 100644 --- a/src/server/progs.src +++ b/src/server/progs.src @@ -74,6 +74,7 @@ shdata_parse.qc gamerules.qc gamerules_fear.qc gamerules_hunt.qc +gamerules_invasion.qc gamerules_madness.qc gamerules_slaughter.qc gamerules_stealth.qc diff --git a/src/server/shdata_parse.qc b/src/server/shdata_parse.qc index e67027d..22fb06c 100644 --- a/src/server/shdata_parse.qc +++ b/src/server/shdata_parse.qc @@ -17,15 +17,12 @@ /* If only origin parameters are applied, make something up */ var int autocvar_sh_sciyaw = TRUE; -/* Limit the amount of scientists spawned */ -var int autocvar_sh_scimax = 30; - void SHData_SpawnScientist(void) { static int slimit = 0; - if (autocvar_sh_scimax) { - if (slimit >= autocvar_sh_scimax) { + if (cvar("sh_scimax")) { + if (slimit >= cvar("sh_scimax")) { dprint("shdata: scientist limit hit. ignored\n"); remove(self); return;