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:
parent
861ed7667d
commit
1057fa4ef9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user