From 13031458664a16be6522570280a4cfb257c50088 Mon Sep 17 00:00:00 2001 From: Taylor Richards Date: Thu, 8 Mar 2018 11:29:41 -0500 Subject: [PATCH] clean up stats saving a bit more --- src/network/multi.cpp | 4 +--- src/network/multiui.cpp | 10 +++------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/src/network/multi.cpp b/src/network/multi.cpp index 91425aa..c4ba2c0 100644 --- a/src/network/multi.cpp +++ b/src/network/multi.cpp @@ -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 diff --git a/src/network/multiui.cpp b/src/network/multiui.cpp index 57ee318..7d45162 100644 --- a/src/network/multiui.cpp +++ b/src/network/multiui.cpp @@ -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 -- 2.39.2