mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-24 08:32:34 +02:00
Merge pull request #4105 from IvanSavenko/limiter_fix
Fix CreatureTerrainLimiter
This commit is contained in:
commit
cffdf1081c
@ -597,10 +597,9 @@ std::shared_ptr<ILimiter> JsonUtils::parseLimiter(const JsonNode & limiter)
|
|||||||
auto terrainLimiter = std::make_shared<CreatureTerrainLimiter>();
|
auto terrainLimiter = std::make_shared<CreatureTerrainLimiter>();
|
||||||
if(!parameters.empty())
|
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;
|
return terrainLimiter;
|
||||||
|
Loading…
Reference in New Issue
Block a user