Nicer early return for return in rush
This commit is contained in:
parent
1b565f1938
commit
608711320f
4
rush00.c
4
rush00.c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue