1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-30 23:18:08 +02:00

Re-enable code that was not restored after terrain rework

This commit is contained in:
Ivan Savenko 2024-06-07 12:24:36 +00:00
parent 861ed7667d
commit 1057fa4ef9

View File

@ -597,10 +597,9 @@ std::shared_ptr<ILimiter> JsonUtils::parseLimiter(const JsonNode & limiter)
auto terrainLimiter = std::make_shared<CreatureTerrainLimiter>();
if(!parameters.empty())
{
VLC->identifiers()->requestIdentifier("terrain", parameters[0], [=](si32 terrain)
VLC->identifiers()->requestIdentifier("terrain", parameters[0], [terrainLimiter](si32 terrain)
{
//TODO: support limiters
//terrainLimiter->terrainType = terrain;
terrainLimiter->terrainType = terrain;
});
}
return terrainLimiter;