clean up stats saving a bit more
authorTaylor Richards <taylor@icculus.org>
Thu, 8 Mar 2018 16:29:41 +0000 (11:29 -0500)
committerTaylor Richards <taylor@icculus.org>
Thu, 8 Mar 2018 16:29:41 +0000 (11:29 -0500)
src/network/multi.cpp
src/network/multiui.cpp

index 91425aa..c4ba2c0 100644 (file)
@@ -1921,12 +1921,10 @@ void multi_standalone_postgame_close()
                        int stats_saved = multi_fs_std_tracker_store_stats();
 
                        if (stats_saved) {
-                               multi_debrief_stats_accept();
-
                                Netgame.flags |= NG_FLAG_STORED_MT_STATS;
                                send_netgame_update_packet();
                        } else {
-                               multi_debrief_stats_toss();
+                               send_store_stats_packet(0);
                        }
 
 #ifndef MAKE_FS1
index 57ee318..7d45162 100644 (file)
@@ -9346,18 +9346,16 @@ void multi_debrief_accept_hit()
                if(Net_player->flags & NETINFO_FLAG_GAME_HOST){
                        // if we're on a tracker game, he gets no choice for storing stats
                        if (MULTI_IS_TRACKER_GAME) {
-                               // if not standalone, send stats
+                               // if not on standalone, send stats
                                if (Net_player->flags & NETINFO_FLAG_AM_MASTER) {
                                        if ( !(Netgame.flags & NG_FLAG_STORED_MT_STATS) ) {
                                                int stats_saved = multi_fs_tracker_store_stats();
 
                                                if (stats_saved) {
-                                                       multi_debrief_stats_accept();
-
                                                        Netgame.flags |= NG_FLAG_STORED_MT_STATS;
                                                        send_netgame_update_packet();
                                                } else {
-                                                       multi_debrief_stats_toss();
+                                                       send_store_stats_packet(0);
                                                }
 
 #ifndef MAKE_FS1
@@ -9422,12 +9420,10 @@ void multi_debrief_esc_hit()
                                        int stats_saved = multi_fs_tracker_store_stats();
 
                                        if (stats_saved) {
-                                               multi_debrief_stats_accept();
-
                                                Netgame.flags |= NG_FLAG_STORED_MT_STATS;
                                                send_netgame_update_packet();
                                        } else {
-                                               multi_debrief_stats_toss();
+                                               send_store_stats_packet(0);
                                        }
 
 #ifndef MAKE_FS1