location gui
[carveJwlIkooP6JGAAIwe30JlM.git] / network.h
index 3d45ab85e6dce64344fa8094ce464fa2fd936f85..3a49d63795473646e9609329cad58e87abdc16eb 100644 (file)
--- a/network.h
+++ b/network.h
@@ -135,15 +135,12 @@ VG_STATIC void send_score_update(void)
    setscore->inetmsg_id = k_inetmsg_set_score;
 
    int count = 0;
-   for( u32 i=0; i<vg_list_size(track_infos); i++ )
-   {
-      if( track_infos[i].push )
-      {
+   for( u32 i=0; i<vg_list_size(track_infos); i++ ){
+      if( track_infos[i].push ){
          track_infos[i].push = 0;
          highscore_record *user_record = highscore_find_user_record( 0, i );
 
-         if( !user_record )
-         {
+         if( !user_record ){
             vg_error( "No score set but tried to upload for track %u\n", i );
             continue;
          }
@@ -157,9 +154,7 @@ VG_STATIC void send_score_update(void)
       }
    }
 
-   if( count == 0 )
-      return;
-
+   if( count == 0 ) return;
    u32 send_size = sizeof(netmsg_set_score) +
                   count*sizeof(struct netmsg_score_record);
    setscore->record_count = count;