Преглед изворни кода

Assembling difficulty json instead of overriding

nordsoft пре 2 година
родитељ
комит
5b24fe289b
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      lib/gameState/CGameState.cpp

+ 1 - 1
lib/gameState/CGameState.cpp

@@ -661,7 +661,7 @@ void CGameState::initGlobalBonuses()
 void CGameState::initDifficulty()
 {
 	logGlobal->debug("\tLoading difficulty settings");
-	const JsonNode config(JsonPath::builtin("config/difficulty.json"));
+	const JsonNode config = JsonUtils::assembleFromFiles("config/difficulty.json");
 	
 	const JsonNode & difficultyAI(config["ai"][GameConstants::DIFFICULTY_NAMES[scenarioOps->difficulty]]);
 	const JsonNode & difficultyHuman(config["human"][GameConstants::DIFFICULTY_NAMES[scenarioOps->difficulty]]);