Skip to content

Commit

Permalink
fix inc in newton fractal
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikappa57 committed Apr 25, 2023
1 parent 5568683 commit 8cd532c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion srcs/frctl/frctl_actions.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* By: lorenzogaudino <lorenzogaudino@student. +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/04/16 11:31:41 by lorenzogaud #+# #+# */
/* Updated: 2023/04/24 19:53:54 by lorenzogaud ### ########.fr */
/* Updated: 2023/04/25 00:12:10 by lorenzogaud ### ########.fr */
/* */
/* ************************************************************************** */

Expand Down Expand Up @@ -47,6 +47,8 @@ int change_inc(t_frctl *frctl, int plus)
frctl->inc -= 0.01;
else
return (0);
if (frctl->type == NEWTON && frctl->inc == 1)
change_inc(frctl, plus);
return (1);
}

Expand Down

0 comments on commit 8cd532c

Please sign in to comment.