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_connect.cpp


From: Philippe Plantier
Subject: [Wesnoth-cvs-commits] wesnoth/src multiplayer_connect.cpp
Date: Mon, 21 Feb 2005 16:45:00 -0500

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     Philippe Plantier <address@hidden>      05/02/21 21:45:00

Modified files:
        src            : multiplayer_connect.cpp 

Log message:
        Players are now kicked from the game when game creator presses the 
Computer vs
        Computer button. Should fixe #12058 and #12059.

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

Patches:
Index: wesnoth/src/multiplayer_connect.cpp
diff -u wesnoth/src/multiplayer_connect.cpp:1.109 
wesnoth/src/multiplayer_connect.cpp:1.110
--- wesnoth/src/multiplayer_connect.cpp:1.109   Mon Feb 21 21:33:27 2005
+++ wesnoth/src/multiplayer_connect.cpp Mon Feb 21 21:44:59 2005
@@ -1,4 +1,4 @@
-/* $Id: multiplayer_connect.cpp,v 1.109 2005/02/21 21:33:27 gruikya Exp $ */
+/* $Id: multiplayer_connect.cpp,v 1.110 2005/02/21 21:44:59 gruikya Exp $ */
 /*
    Copyright (C) 
    Part of the Battle for Wesnoth Project http://www.wesnoth.org
@@ -492,6 +492,8 @@
 
        if (ai_.pressed()) {
                for(size_t m = 0; m != sides_.size(); ++m) {
+                       if(sides_[m].get_id() != preferences::login())
+                               kick_player(sides_[m].get_id());
                        sides_[m].set_controller(CNTR_COMPUTER);
                }
                changed = true;




reply via email to

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