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

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

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


From: Jon Daniel
Subject: [Wesnoth-cvs-commits] wesnoth/src playcampaign.cpp
Date: Tue, 02 Aug 2005 16:38:46 -0400

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     Jon Daniel <address@hidden>     05/08/02 20:38:45

Modified files:
        src            : playcampaign.cpp 

Log message:
        Partially fixed bug #13348. But the host still has to click all the 
dialogs away in order for him to send the end_scenarios.
        But at least it sends it now.

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

Patches:
Index: wesnoth/src/playcampaign.cpp
diff -u wesnoth/src/playcampaign.cpp:1.9 wesnoth/src/playcampaign.cpp:1.10
--- wesnoth/src/playcampaign.cpp:1.9    Sun Jul 10 17:27:08 2005
+++ wesnoth/src/playcampaign.cpp        Tue Aug  2 20:38:45 2005
@@ -1,4 +1,4 @@
-/* $Id: playcampaign.cpp,v 1.9 2005/07/10 17:27:08 ott Exp $ */
+/* $Id: playcampaign.cpp,v 1.10 2005/08/02 20:38:45 j_daniel Exp $ */
 /*
    Copyright (C) 2003-2005 by David White <address@hidden>
    Copyright (C) 2005 by Philippe Plantier <address@hidden>
@@ -175,8 +175,13 @@
                                res = VICTORY;
                                save_game_after_scenario = false;
                        }
-
                        if(res != VICTORY) {
+                               // tell all clients that the campaign won't 
continue
+                               if(io_type == IO_SERVER) {
+                                       config end;
+                                       end.add_child("end_scenarios");
+                                       network::send_data(end);
+                               }
                                return res;
                        }
                } catch(game::load_game_failed& e) {




reply via email to

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