File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed
Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -704,13 +704,10 @@ void updacc(int p)
704704
705705 /* upda5 */
706706 // if the planet is too far, set a flag to not draw its border
707- // and ignore its gravity
708- if (dpar > fardst ) {
709- // unless it's the sun
710- if (p ) {
711- grvflg = true;
712- return ;
713- }
707+ // and ignore its gravity unless it's the sun
708+ if (dpar > fardst && p ) {
709+ grvflg = true;
710+ return ;
714711 }
715712 grvflg = false;
716713
@@ -960,7 +957,7 @@ void main_loop(void)
960957#ifdef __EMSCRIPTEN__
961958 emscripten_cancel_main_loop ();
962959#else
963- exit (0 );
960+ exit (EXIT_SUCCESS );
964961#endif
965962}
966963
@@ -1028,11 +1025,11 @@ int main(void)
10281025#ifdef __EMSCRIPTEN__
10291026 emscripten_set_main_loop (main_loop , 0 , true);
10301027#else
1031- while (1 ) {
1028+ while (true ) {
10321029 main_loop ();
10331030 SDL_Delay (1000 /60 );
10341031 }
10351032#endif
10361033
1037- return 0 ;
1034+ return EXIT_SUCCESS ;
10381035}
You can’t perform that action at this time.
0 commit comments