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

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

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


From: Guillaume Melquiond
Subject: [Wesnoth-cvs-commits] wesnoth/src playlevel.cpp
Date: Thu, 03 Feb 2005 14:03:51 -0500

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     Guillaume Melquiond <address@hidden>    05/02/03 19:03:51

Modified files:
        src            : playlevel.cpp 

Log message:
        Correct the condition expression so that there is no discrepancy 
between defeat and victory. No need to test for nconnections, the test will be 
done in send_data anyway, and this is not a critical path of the program.

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

Patches:
Index: wesnoth/src/playlevel.cpp
diff -u wesnoth/src/playlevel.cpp:1.173 wesnoth/src/playlevel.cpp:1.174
--- wesnoth/src/playlevel.cpp:1.173     Sat Jan 29 04:13:17 2005
+++ wesnoth/src/playlevel.cpp   Thu Feb  3 19:03:51 2005
@@ -1,4 +1,4 @@
-/* $Id: playlevel.cpp,v 1.173 2005/01/29 04:13:17 Sirp Exp $ */
+/* $Id: playlevel.cpp,v 1.174 2005/02/03 19:03:51 silene Exp $ */
 /*
    Copyright (C) 2003 by David White <address@hidden>
    Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -713,7 +713,7 @@
 
                //if we're a player, and the result is victory/defeat, then 
send a message to notify
                //the server of the reason for the game ending
-               if(end_level.result == DEFEAT || end_level.result == VICTORY && 
network::nconnections() > 0) {
+               if (end_level.result == DEFEAT || end_level.result == VICTORY) {
                        config cfg;
                        config& info = cfg.add_child("info");
                        info["type"] = "termination";




reply via email to

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