Oops, forgot an important line
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / mutators / sandbox.qc
index 91fd4dd79d42b54537bd645a614664e77cf27e76..a97067fc7e308a3f6c24aebb562ee47fbce733b3 100644 (file)
@@ -109,6 +109,7 @@ MUTATOR_HOOKFUNCTION(sandbox_PlayerPreThink)
        if(autocvar_sv_cheats)
                return FALSE; // cheats already allow dragging all objects
 
+       makevectors(self.v_angle);
        WarpZone_TraceLine(self.origin + self.view_ofs, self.origin + self.view_ofs + v_forward * autocvar_g_sandbox_editor_distance_edit, MOVE_NORMAL, self);
        if(trace_ent.classname == "object")
                if(Drag(trace_ent)) // executes the dragging