mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-04 23:17:41 +02:00
Spectator mode
This commit is contained in:
parent
662db90cc1
commit
f005dbbc14
@ -401,7 +401,12 @@ void CClient::initPlayerEnvironments()
|
|||||||
playerEnvironments.clear();
|
playerEnvironments.clear();
|
||||||
|
|
||||||
auto allPlayers = CSH->getAllClientPlayers(CSH->c->connectionID);
|
auto allPlayers = CSH->getAllClientPlayers(CSH->c->connectionID);
|
||||||
|
if(allPlayers.empty())
|
||||||
|
{
|
||||||
|
Settings session = settings.write["session"];
|
||||||
|
session["spectate"].Bool() = true;
|
||||||
|
}
|
||||||
|
|
||||||
for(auto & color : allPlayers)
|
for(auto & color : allPlayers)
|
||||||
{
|
{
|
||||||
logNetwork->info("Preparing environment for player %s", color.getStr());
|
logNetwork->info("Preparing environment for player %s", color.getStr());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user