mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
basic multiplayer support
This commit is contained in:
@@ -401,7 +401,7 @@ void ApplyClientNetPackVisitor::visitPlayerEndsGame(PlayerEndsGame & pack)
|
||||
bool localHumanWinsGame = vstd::contains(cl.playerint, pack.player) && cl.gameInfo().getPlayerState(pack.player)->human && pack.victoryLossCheckResult.victory();
|
||||
bool lastHumanEndsGame = GAME->server().howManyPlayerInterfaces() == 1 && vstd::contains(cl.playerint, pack.player) && cl.gameInfo().getPlayerState(pack.player)->human && !settings["session"]["spectate"].Bool();
|
||||
|
||||
if(lastHumanEndsGame || localHumanWinsGame)
|
||||
if(lastHumanEndsGame || localHumanWinsGame || pack.silentEnd)
|
||||
{
|
||||
assert(adventureInt);
|
||||
if(adventureInt)
|
||||
|
||||
Reference in New Issue
Block a user