mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-03 14:52:11 +02:00
Tweaks
This commit is contained in:
parent
150fcc9422
commit
5a8ee32f89
@ -217,14 +217,15 @@ void CMapFormatJson::serializePlayerInfo(JsonSerializeFormat & handler)
|
||||
{
|
||||
PlayerInfo & info = mapHeader->players[player];
|
||||
|
||||
auto playerData = playersData.enterStruct(GameConstants::PLAYER_COLOR_NAMES[player]);
|
||||
|
||||
if(handler.saving)
|
||||
{
|
||||
if(!info.canAnyonePlay())
|
||||
continue;
|
||||
}
|
||||
else
|
||||
|
||||
auto playerData = playersData.enterStruct(GameConstants::PLAYER_COLOR_NAMES[player]);
|
||||
|
||||
if(!handler.saving)
|
||||
{
|
||||
if(playerData.get().isNull())
|
||||
{
|
||||
@ -262,7 +263,7 @@ void CMapFormatJson::serializePlayerInfo(JsonSerializeFormat & handler)
|
||||
|
||||
//heroes
|
||||
{
|
||||
auto heroes = playersData.enterStruct("heroes");
|
||||
//auto heroes = playerData.enterStruct("heroes");
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user