From 608711320f9844a800cc5836d139619611ab1acd Mon Sep 17 00:00:00 2001 From: Juan Bosco Torrez Castillo Date: Sat, 18 Mar 2023 20:26:55 +0100 Subject: [PATCH] Nicer early return for return in rush --- rush00.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rush00.c b/rush00.c index d842a3f..41b6d2e 100644 --- a/rush00.c +++ b/rush00.c @@ -6,7 +6,7 @@ /* By: jtorrez- +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* 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)