mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
Added GameSettings to gamestate, potentially allowing to define game
settings per map (or in random map template)
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
|
||||
#include "../../CCreatureHandler.h"
|
||||
#include "../../CHeroHandler.h"
|
||||
#include "../../GameSettings.h"
|
||||
#include "../../IGameSettings.h"
|
||||
#include "../../TerrainHandler.h"
|
||||
#include "../../VCMI_Lib.h"
|
||||
|
||||
@@ -76,7 +76,7 @@ const TPropagatorPtr & CTownHandler::emptyPropagator()
|
||||
|
||||
std::vector<JsonNode> CTownHandler::loadLegacyData()
|
||||
{
|
||||
size_t dataSize = VLC->settings()->getInteger(EGameSettings::TEXTS_FACTION);
|
||||
size_t dataSize = VLC->engineSettings()->getInteger(EGameSettings::TEXTS_FACTION);
|
||||
|
||||
std::vector<JsonNode> dest(dataSize);
|
||||
objects.resize(dataSize);
|
||||
|
||||
Reference in New Issue
Block a user