]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Work around `SZ_GetSpace: overflow`
authorTimePath <andrew.hardaker1995@gmail.com>
Sat, 15 Aug 2015 07:25:53 +0000 (17:25 +1000)
committerTimePath <andrew.hardaker1995@gmail.com>
Sat, 15 Aug 2015 07:25:53 +0000 (17:25 +1000)
qcsrc/server/miscfunctions.qc
qcsrc/server/mutators/base.qh

index fa7cc077163a1a4b3db33ecf6a324597e46f207c..4975b86f09cbc8b5ee85291a683f8e305d73a691 100644 (file)
@@ -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();
 
index 2a9a48adba70d76f669f29f5646b34861d917935..8e753140fc508a6f7614f2c6e15c5d721d395a4c 100644 (file)
@@ -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) \