local detected_different = false | local detected_different = false | ||||
if detected_ct and detected_ct ~= ct then | if detected_ct and detected_ct ~= ct then | ||||
local v_detected = map:get_key(detected_ct) | local v_detected = map:get_key(detected_ct) | ||||
if v_detected > v then v = v_detected end | |||||
if not v or v_detected and v_detected > v then v = v_detected end | |||||
detected_different = true | detected_different = true | ||||
end | end | ||||
if v then | if v then |