Fix join and observe buttons not being hidden after create game cancel
This commit is contained in:
parent
a560fba6c1
commit
0426a8de95
1 changed files with 3 additions and 2 deletions
|
@ -238,8 +238,9 @@ void lobby::process_event()
|
|||
|
||||
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]);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue