1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-28 03:57:02 +02:00

Multiplayer: always display flags in lobby, but block them for guest

This commit is contained in:
ArseniyShestakov 2015-03-15 19:24:03 +03:00
parent 783dcfea2e
commit c4000f2ac7

View File

@ -2627,11 +2627,11 @@ OptionsTab::PlayerOptionsEntry::PlayerOptionsEntry( OptionsTab *owner, PlayerSet
whoCanPlay = HUMAN;
if(SEL->screenType != CMenuScreen::scenarioInfo
&& SEL->current->mapHeader->players[s.color.getNum()].canHumanPlay
&& SEL->multiPlayer != CMenuScreen::MULTI_NETWORK_GUEST)
&& SEL->current->mapHeader->players[s.color.getNum()].canHumanPlay)
{
flag = new CButton(Point(-43, 2), flags[s.color.getNum()], CGI->generaltexth->zelp[180], std::bind(&OptionsTab::flagPressed, owner, s.color));
flag->hoverable = true;
flag->block(SEL->isGuest());
}
else
flag = nullptr;