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


From: Jon Daniel
Subject: [Wesnoth-cvs-commits] wesnoth/src multiplayer_lobby.cpp
Date: Mon, 01 Aug 2005 17:33:19 -0400

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     Jon Daniel <address@hidden>     05/08/01 21:33:19

Modified files:
        src            : multiplayer_lobby.cpp 

Log message:
        * Fix join and observe buttons not being hidden after create game cancel

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

Patches:
Index: wesnoth/src/multiplayer_lobby.cpp
diff -u wesnoth/src/multiplayer_lobby.cpp:1.80 
wesnoth/src/multiplayer_lobby.cpp:1.81
--- wesnoth/src/multiplayer_lobby.cpp:1.80      Mon Aug  1 20:36:11 2005
+++ wesnoth/src/multiplayer_lobby.cpp   Mon Aug  1 21:33:19 2005
@@ -1,4 +1,4 @@
-/* $Id: multiplayer_lobby.cpp,v 1.80 2005/08/01 20:36:11 j_daniel Exp $ */
+/* $Id: multiplayer_lobby.cpp,v 1.81 2005/08/01 21:33:19 j_daniel Exp $ */
 /*
    Copyright (C)
    Part of the Battle for Wesnoth Project http://www.wesnoth.org
@@ -238,8 +238,9 @@
 
        int selection = games_menu_.selection();
 
-       if(selection != current_game_ && selection >= 0 && selection < 
int(game_vacant_slots_.size())) {
-               current_game_ = selection;
+       if(selection >= 0 && selection < int(game_vacant_slots_.size())) {
+               if(selection != current_game_)
+                       current_game_ = selection;
                join_game_.hide(!game_vacant_slots_[selection]);
                observe_game_.hide(!game_observers_[selection]);
        }




reply via email to

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