mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-15 01:24:45 +02:00
Added GameSettings to gamestate, potentially allowing to define game
settings per map (or in random map template)
This commit is contained in:
@ -11,7 +11,7 @@
|
||||
#include "StdInc.h"
|
||||
#include "RiverHandler.h"
|
||||
#include "texts/CGeneralTextHandler.h"
|
||||
#include "GameSettings.h"
|
||||
#include "IGameSettings.h"
|
||||
#include "json/JsonNode.h"
|
||||
#include "VCMI_Lib.h"
|
||||
|
||||
@ -63,7 +63,7 @@ const std::vector<std::string> & RiverTypeHandler::getTypeNames() const
|
||||
|
||||
std::vector<JsonNode> RiverTypeHandler::loadLegacyData()
|
||||
{
|
||||
size_t dataSize = VLC->settings()->getInteger(EGameSettings::TEXTS_RIVER);
|
||||
size_t dataSize = VLC->engineSettings()->getInteger(EGameSettings::TEXTS_RIVER);
|
||||
|
||||
objects.resize(dataSize);
|
||||
return {};
|
||||
|
Reference in New Issue
Block a user