Skip to content

Commit

Permalink
netpregamescreen: Do not hide loading status if no team strategy view
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due committed Oct 11, 2023
1 parent 36f7e02 commit efac9a9
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions src/screens/netpregamescreen.cpp
Expand Up @@ -764,13 +764,14 @@ void WzGameStartOverlayScreen_CLICKFORM::transitionToNextState()
if (teamStrategyView)
{
transformTeamStrategyViewMode(teamStrategyView, true);
}

// if needed, hide playersLoadingStatus so the team planning can use the full height
if (true)
{
playersLoadingStatus->hide();
// if needed, hide playersLoadingStatus so the team planning can use the full height
if (true)
{
playersLoadingStatus->hide();
}
}

recalcLayout();
}
else
Expand Down Expand Up @@ -810,7 +811,6 @@ void WzGameStartOverlayScreen_CLICKFORM::updateData()
if (currentState == PregameWaitingState::WaitingForPlayersToJoin)
{
size_t playersWaitingToJoin = 0;
size_t playersJoined = 0;
for (int i = 0; i < MAX_CONNECTED_PLAYERS; i++)
{
if (isHumanPlayer(i))
Expand All @@ -819,10 +819,6 @@ void WzGameStartOverlayScreen_CLICKFORM::updateData()
{
playersWaitingToJoin++;
}
else
{
playersJoined++;
}
}
}
// if all players have joined, transition to the next state
Expand Down

0 comments on commit efac9a9

Please sign in to comment.