From 0f7c8403ce885f433eb9898aee3e281a57b63b3b Mon Sep 17 00:00:00 2001 From: Jean Sirmai Date: Thu, 2 Nov 2023 22:52:18 +0100 Subject: [PATCH] =?UTF-8?q?WIP:=20tr=C3=A8s=20proche=20de=20l'erreur=20:?= =?UTF-8?q?=20lignes=20780-786?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/graphics/graphics.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/graphics/graphics.c b/src/graphics/graphics.c index 7d91d63..6b4985b 100644 --- a/src/graphics/graphics.c +++ b/src/graphics/graphics.c @@ -664,13 +664,13 @@ static inline int erase_arrow (int arrows_nb, int arrow_address_in_list, : arrows_ptr[%d].site (value: %d) was replaced by %d (%d was the value of the last arrow.site)\n",\ arrows_nb + 1, arrows_nb, arrow_address_in_list, arrow_address_in_list, \ mem, arrows_ptr[arrows_nb].site, arrows_ptr[arrows_nb].site); + } for (long i = 0 + arrow_address_in_list * 6; i < 6 + arrow_address_in_list * 6; i++) buffer_vertex_origin [buffer_vertex_0_arrow + i] = buffer_vertex_origin [buffer_vertex_size - 6 + i]; for (long i = 0 + arrow_address_in_list * 6; i < 6 + arrow_address_in_list * 6; i++) buffer_colors_origin [buffer_colors_0_arrow + i] = buffer_colors_origin [buffer_colors_size - 6 + i]; - } buffer_vertex_size -= 6; // <<< l'inverse de ce qui est fait dans : graphics_write_vertex() buffer_colors_size -= 6; // <<< l'inverse de ce qui est fait dans : graphics_write_colors() @@ -776,9 +776,14 @@ void main_test_graphics (void) rand() % space_Y, // y rand() % space_Z, // z console); - else for (int i = 0; i < 1; i++) - arrows_nb = set_arrow (arrows_ptr, arrows_nb, 1, 1, 1, 0, i, 0, 0, 0, 1); - arrows_nb = set_arrow (arrows_ptr, arrows_nb, 1, 1, 1, 0, 1, 0, 0, 0, 1); + /* else for (int i = 0; i < 1; i++) ; */ + arrows_nb = set_arrow (arrows_ptr, arrows_nb, 1, 1, 1, 0, 0, 0, 0, 0, 1); + arrows_nb = set_arrow (arrows_ptr, arrows_nb, 1, 1, 1, 0, 1, 0, 0, 0, 1); + arrows_nb = set_arrow (arrows_ptr, arrows_nb, 1, 1, 1, 0, 2, 0, 0, 0, 1); + arrows_nb = set_arrow (arrows_ptr, arrows_nb, 1, 1, 1, 0, 3, 0, 0, 0, 1); + arrows_nb = set_arrow (arrows_ptr, arrows_nb, 1, 1, 1, 0, 4, 0, 0, 0, 1); + arrows_nb = set_arrow (arrows_ptr, arrows_nb, 1, 1, 1, 0, 5, 0, 0, 0, 1); + arrows_nb = set_arrow (arrows_ptr, arrows_nb, 1, 1, 1, 0, 6, 0, 0, 0, 1); if (randomize) print_user_choices(arrows_ptr, max_arrows_nb, arrows_nb, space_X, space_Y, space_Z, 1, 0);