Nicer early return for return in rush

This commit is contained in:
Juan Bosco Torrez Castillo 2023-03-18 20:26:55 +01:00
parent 1b565f1938
commit 608711320f
1 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@
/* By: jtorrez- <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/03/18 20:15:12 by jtorrez- #+# #+# */
/* Updated: 2023/03/18 20:25:05 by jtorrez- ### ########.fr */
/* Updated: 2023/03/18 20:26:32 by jtorrez- ### ########.fr */
/* */
/* ************************************************************************** */
@ -25,7 +25,7 @@ void rush(int x, int y)
int i;
i = 0;
if (x == 0 || y == 0)
if (x * y == 0)
return ;
horiz_line(g_corners[0], g_horizontal, g_corners[1], x);
while (i++ < y - 2)