mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-17 00:07:41 +02:00
Merge branch 'vcmi/master' into 'vcmi/develop'
This commit is contained in:
@ -986,12 +986,14 @@ void CVCMIServer::multiplayerWelcomeMessage()
|
||||
{
|
||||
int humanPlayer = 0;
|
||||
for (auto & pi : si->playerInfos)
|
||||
if(gh->getPlayerState(pi.first)->isHuman())
|
||||
if(pi.second.isControlledByHuman())
|
||||
humanPlayer++;
|
||||
|
||||
if(humanPlayer < 2) // Singleplayer
|
||||
return;
|
||||
|
||||
gh->playerMessages->broadcastSystemMessage("Use '!help' to list available commands");
|
||||
|
||||
std::vector<std::string> optionIds;
|
||||
if(si->extraOptionsInfo.cheatsAllowed)
|
||||
optionIds.push_back("vcmi.optionsTab.cheatAllowed.hover");
|
||||
|
Reference in New Issue
Block a user