X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fcheats.qc;h=aa87763ca360441eb5268efca18ed2eb922c3818;hb=f40d50ebdbbfc5c65f0e75cdfa3bd176501e8d4a;hp=361afadee6d1dce14f016c3022f8ac06425046c1;hpb=5607e279fe7b0dc9f92e15556ed6dc33f17f549c;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/cheats.qc b/qcsrc/server/cheats.qc index 361afadee..aa87763ca 100644 --- a/qcsrc/server/cheats.qc +++ b/qcsrc/server/cheats.qc @@ -11,7 +11,6 @@ #include "../common/constants.qh" #include "../common/deathtypes.qh" -#include "../common/effects/effects.qh" #include "../common/util.qh" #include "../common/monsters/all.qh" @@ -129,8 +128,8 @@ void info_autoscreenshot_findtarget() self.angles_y = a.y; // we leave Rick Roll alone } -void spawnfunc_info_autoscreenshot() -{SELFPARAM(); +spawnfunc(info_autoscreenshot) +{ if(++num_autoscreenshot > autocvar_g_max_info_autoscreenshot) { objerror("Too many info_autoscreenshot entitites. FAIL!"); @@ -372,7 +371,7 @@ float CheatCommand(float argc) e.angles = fixedvectoangles2(trace_plane_normal, v_forward); e.angles = AnglesTransform_ApplyToAngles(e.angles, '-90 0 0'); // so unrotated models work } - WITH(entity, self, e, spawnfunc_func_breakable()); + WITH(entity, self, e, spawnfunc_func_breakable(e)); // now, is it valid? if(f == 0) {