wesnoth-cvs-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Wesnoth-cvs-commits] wesnoth/src multiplayer.cpp


From: Philippe Plantier
Subject: [Wesnoth-cvs-commits] wesnoth/src multiplayer.cpp
Date: Sun, 24 Apr 2005 17:31:29 -0400

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     Philippe Plantier <address@hidden>      05/04/24 21:31:29

Modified files:
        src            : multiplayer.cpp 

Log message:
        Fixed #12791: statistics not being reset between MP games.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/multiplayer.cpp.diff?tr1=1.156&tr2=1.157&r1=text&r2=text

Patches:
Index: wesnoth/src/multiplayer.cpp
diff -u wesnoth/src/multiplayer.cpp:1.156 wesnoth/src/multiplayer.cpp:1.157
--- wesnoth/src/multiplayer.cpp:1.156   Tue Apr 12 22:03:41 2005
+++ wesnoth/src/multiplayer.cpp Sun Apr 24 21:31:29 2005
@@ -1,4 +1,4 @@
-/* $Id: multiplayer.cpp,v 1.156 2005/04/12 22:03:41 ydirson Exp $ */
+/* $Id: multiplayer.cpp,v 1.157 2005/04/24 21:31:29 gruikya Exp $ */
 /*
    Copyright (C)
    Part of the Battle for Wesnoth Project http://www.wesnoth.org
@@ -28,6 +28,7 @@
 #include "random.hpp"
 #include "replay.hpp"
 #include "video.hpp"
+#include "statistics.hpp"
 #include "serialization/string_utils.hpp"
 
 #define LOG_NW LOG_STREAM(info, network)
@@ -238,6 +239,7 @@
        network_game_manager m;
 
        gamelist.clear();
+       statistics::fresh_stats();
 
        {
                mp::wait ui(disp, game_config, data, chat, gamelist);
@@ -280,6 +282,7 @@
        network_game_manager m;
 
        gamelist.clear();
+       statistics::fresh_stats();
 
        {
                mp::connect ui(disp, game_config, data, chat, gamelist, params, 
default_controller);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]