|
@@ -902,8 +902,17 @@ void CTownHandler::loadClientData(CTown &town, const JsonNode & source) const
|
|
readIcon(source["icons"]["fort"]["normal"], info.iconSmall[1][0], info.iconLarge[1][0]);
|
|
readIcon(source["icons"]["fort"]["normal"], info.iconSmall[1][0], info.iconLarge[1][0]);
|
|
readIcon(source["icons"]["fort"]["built"], info.iconSmall[1][1], info.iconLarge[1][1]);
|
|
readIcon(source["icons"]["fort"]["built"], info.iconSmall[1][1], info.iconLarge[1][1]);
|
|
|
|
|
|
|
|
+ if (source["musicTheme"].isVector())
|
|
|
|
+ {
|
|
|
|
+ for (auto const & entry : source["musicTheme"].Vector())
|
|
|
|
+ info.musicTheme.push_back(AudioPath::fromJson(entry));
|
|
|
|
+ }
|
|
|
|
+ else
|
|
|
|
+ {
|
|
|
|
+ info.musicTheme.push_back(AudioPath::fromJson(source["musicTheme"]));
|
|
|
|
+ }
|
|
|
|
+
|
|
info.hallBackground = ImagePath::fromJson(source["hallBackground"]);
|
|
info.hallBackground = ImagePath::fromJson(source["hallBackground"]);
|
|
- info.musicTheme = AudioPath::fromJson(source["musicTheme"]);
|
|
|
|
info.townBackground = ImagePath::fromJson(source["townBackground"]);
|
|
info.townBackground = ImagePath::fromJson(source["townBackground"]);
|
|
info.guildWindow = ImagePath::fromJson(source["guildWindow"]);
|
|
info.guildWindow = ImagePath::fromJson(source["guildWindow"]);
|
|
info.buildingsIcons = AnimationPath::fromJson(source["buildingsIcons"]);
|
|
info.buildingsIcons = AnimationPath::fromJson(source["buildingsIcons"]);
|