Author: brunowolff
Date: Wed Mar 19 18:13:25 2008
New Revision: 24855

URL: http://svn.gna.org/viewcvs/wesnoth?rev=24855&view=rev
Log:
Semantic change
I am not 100% sure about this one. It looks like the network connection test
should be done for either command, but I could be wrong about this.
Silence gcc 4.3 warning by adding parens around || clause near &&.

Modified:
    trunk/src/menu_events.cpp

Modified: trunk/src/menu_events.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/menu_events.cpp?rev=24855&r1=24854&r2=24855&view=diff
==============================================================================
--- trunk/src/menu_events.cpp (original)
+++ trunk/src/menu_events.cpp Wed Mar 19 18:13:25 2008
@@ -2161,7 +2161,7 @@
                        change_logging(data);
                } else if (cmd == "theme") {
                        preferences::show_theme_dialog(*gui_);
-               } else if (cmd == "muteall" || cmd == "ping"
+               } else if ((cmd == "muteall" || cmd == "ping")
                                && network::nconnections() != 0)
                {
                        send_command(cmd);


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to