Added GameSettings to gamestate, potentially allowing to define game
settings per map (or in random map template)
This commit is contained in:
1 parent
6179521364
commit
8225eb454e
68 files changed
+432
-293
No files matched your search
+2
-2
@@ -11,7 +11,7 @@
|
||||
#include "StdInc.h"
|
||||
#include "RoadHandler.h"
|
||||
#include "texts/CGeneralTextHandler.h"
|
||||
#include "GameSettings.h"
|
||||
#include "IGameSettings.h"
|
||||
#include "json/JsonNode.h"
|
||||
#include "VCMI_Lib.h"
|
||||
|
||||
@@ -54,7 +54,7 @@ const std::vector<std::string> & RoadTypeHandler::getTypeNames() const
|
||||
|
||||
std::vector<JsonNode> RoadTypeHandler::loadLegacyData()
|
||||
{
|
||||
size_t dataSize = VLC->settings()->getInteger(EGameSettings::TEXTS_ROAD);
|
||||
size_t dataSize = VLC->engineSettings()->getInteger(EGameSettings::TEXTS_ROAD);
|
||||
|
||||
objects.resize(dataSize);
|
||||
return {};
|
||||
|
||||
Reference in new issue
Block a user