maybe improve performance a bit

This commit is contained in:
DS-Minetest 2017-06-03 12:09:59 +02:00
parent eaf38e4e03
commit 6ad4ecfbaa

@ -77,6 +77,9 @@ local function look_differences(bitsa, bitsb)
end
local function is_different(diff_shall, diff_is)
if diff_shall == 511 then
return true
end
for i = #meaning, 0, -1 do
local n = 2^i
local a = diff_shall - n >= 0