From: TimePath Date: Sat, 15 Aug 2015 07:25:53 +0000 (+1000) Subject: Work around `SZ_GetSpace: overflow` X-Git-Tag: xonotic-v0.8.2~2071^2~3 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=72b7f057a71bc8e7cf9f363f1a45c869b15b6fad;p=xonotic%2Fxonotic-data.pk3dir.git Work around `SZ_GetSpace: overflow` --- diff --git a/qcsrc/server/miscfunctions.qc b/qcsrc/server/miscfunctions.qc index fa7cc0771..4975b86f0 100644 --- a/qcsrc/server/miscfunctions.qc +++ b/qcsrc/server/miscfunctions.qc @@ -425,7 +425,9 @@ void GetCvars(float f) if (f > 0) s = strcat1(argv(f)); - MUTATOR_CALLHOOK(GetCvars, f, s); + get_cvars_f = f; + get_cvars_s = s; + MUTATOR_CALLHOOK(GetCvars); Notification_GetCvars(); diff --git a/qcsrc/server/mutators/base.qh b/qcsrc/server/mutators/base.qh index 2a9a48adb..8e753140f 100644 --- a/qcsrc/server/mutators/base.qh +++ b/qcsrc/server/mutators/base.qh @@ -246,7 +246,7 @@ MUTATOR_HOOKABLE(PlayerPhysics, EV_NO_ARGS); /**/ float get_cvars_f; string get_cvars_s; -MUTATOR_HOOKABLE(GetCvars, EV_GetCvars); +MUTATOR_HOOKABLE(GetCvars, EV_NO_ARGS); // NOTE: Can't use EV_GetCvars because of `SZ_GetSpace: overflow` /** can edit any "just fired" projectile */ #define EV_EditProjectile(i, o) \