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

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

[Wesnoth-cvs-commits] wesnoth/src/server game.cpp


From: Jon Daniel
Subject: [Wesnoth-cvs-commits] wesnoth/src/server game.cpp
Date: Tue, 08 Feb 2005 07:29:33 -0500

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     Jon Daniel <address@hidden>     05/02/08 12:29:32

Modified files:
        src/server     : game.cpp 

Log message:
        Fixed a problem with latest fix which caused observers who joined as
        observer at the lobby to see themselves in the report.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/server/game.cpp.diff?tr1=1.27&tr2=1.28&r1=text&r2=text

Patches:
Index: wesnoth/src/server/game.cpp
diff -u wesnoth/src/server/game.cpp:1.27 wesnoth/src/server/game.cpp:1.28
--- wesnoth/src/server/game.cpp:1.27    Tue Feb  8 11:42:12 2005
+++ wesnoth/src/server/game.cpp Tue Feb  8 12:29:31 2005
@@ -354,7 +354,7 @@
                
                //send observer join of all the observers in the game to player
                for(std::vector<network::connection>::const_iterator pl = 
players_.begin()+1; pl != players_.end(); ++pl) {
-                       if(sides_.count(*pl) == 0) {
+                       if(sides_.count(*pl) == 0 && *pl != player) {
                                info = player_info_->find(*pl);
                                if(info != player_info_->end()) {
                                        cfg.clear();




reply via email to

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