From 6f05ae350b6b6ca04973c97d64dee81651d641ca Mon Sep 17 00:00:00 2001 From: Cameron Reikes Date: Sat, 8 Apr 2023 17:43:06 -0700 Subject: [PATCH] Convert another loop to use buff iter i macro --- main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/main.c b/main.c index 56675f0..564b51c 100644 --- a/main.c +++ b/main.c @@ -2003,13 +2003,12 @@ Vec2 move_and_slide(MoveSlideParams p) } - i = 0; OverlapBuff overlapping_smallest_first = {0}; if(actually_overlapping.cur_index > 0) { BUFF_APPEND(&overlapping_smallest_first, actually_overlapping.data[smallest_aabb_index]); } - BUFF_ITER(AABB, &actually_overlapping) + BUFF_ITER_I(AABB, &actually_overlapping, i) { if(i == smallest_aabb_index) { @@ -2018,7 +2017,6 @@ Vec2 move_and_slide(MoveSlideParams p) { BUFF_APPEND(&overlapping_smallest_first, *it); } - i++; } // overlapping