Skip to content
Snippets Groups Projects
Commit 2c57a357 authored by Buscaape's avatar Buscaape
Browse files

Suppression de code inutile pour les positions initiales car elles étaient déjà initialisées

parent c2969ec4
No related branches found
No related tags found
No related merge requests found
No preview for this file type
......@@ -28,12 +28,7 @@ int main()
planet[3] = create_planet(M_MARS, R_MARS, E_MARS, DGA_MARS, COLOR_RED);
planet[4] = create_planet(M_TATOOINE, R_TATOOINE, E_TATOOINE, DGA_TATOOINE,COLOR_WHITE);
planet[5] = create_planet(M_MANN,R_MANN,E_MANN,DGA_MANN,COLOR_BLUE);
system_t system = create_system(planet, NB_PLANETS);
for (uint16_t i = 0; i < NB_PLANETS; ++i) {
system.planets[i].prec_pos=system.planets[i].pos;
system.planets[i].pos = postition_next(system.planets[i],DELTA_T,&system);
}
while (true)
{
show_system(ctxt, &system, SCREEN_WIDTH, SCREEN_HEIGHT, RESOLUTION);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment