From 1057fa4ef981d7f650653ab888324460e39fe7c8 Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Fri, 7 Jun 2024 12:24:36 +0000 Subject: [PATCH] Re-enable code that was not restored after terrain rework --- lib/json/JsonBonus.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/json/JsonBonus.cpp b/lib/json/JsonBonus.cpp index dbf023c47..82c5c485d 100644 --- a/lib/json/JsonBonus.cpp +++ b/lib/json/JsonBonus.cpp @@ -597,10 +597,9 @@ std::shared_ptr JsonUtils::parseLimiter(const JsonNode & limiter) auto terrainLimiter = std::make_shared(); 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;