mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
Minor fixes to multiplayer load game support
This commit is contained in:
@@ -399,8 +399,6 @@ void CClient::loadGame(const std::string & fname, const bool server, const std::
|
||||
logNetwork->infoStream() << "Server opened savegame properly.";
|
||||
}
|
||||
|
||||
player = PlayerColor(player_);
|
||||
|
||||
if(server)
|
||||
{
|
||||
for(auto & elem : gs->scenarioOps->playerInfos)
|
||||
@@ -710,11 +708,12 @@ void CClient::serialize( Handler &h, const int version, const std::set<PlayerCol
|
||||
|
||||
if(playerIDs.count(pid))
|
||||
installNewPlayerInterface(nInt, pid);
|
||||
|
||||
nInt->loadGame(dynamic_cast<CISer<CLoadFile>&>(h), version); //another evil cast, check above
|
||||
}
|
||||
|
||||
if(!vstd::contains(battleints, PlayerColor::NEUTRAL))
|
||||
loadNeutralBattleAI();
|
||||
/* if(!vstd::contains(battleints, PlayerColor::NEUTRAL))
|
||||
loadNeutralBattleAI();*/
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user