removing debug messages =S
This commit is contained in:
parent
8a22b98d01
commit
e0325c4c3b
|
@ -91,12 +91,10 @@ end
|
||||||
|
|
||||||
function HealthBar.onStatesChange(localPlayer, now, old)
|
function HealthBar.onStatesChange(localPlayer, now, old)
|
||||||
local bitsChanged = bit32.bxor(now, old)
|
local bitsChanged = bit32.bxor(now, old)
|
||||||
print("HealthBar.onStatesChange 1 " .. bitsChanged)
|
|
||||||
for i = 1, 32 do
|
for i = 1, 32 do
|
||||||
local pow = math.pow(2, i-1)
|
local pow = math.pow(2, i-1)
|
||||||
if pow > bitsChanged then break end
|
if pow > bitsChanged then break end
|
||||||
local bitChanged = bit32.band(bitsChanged, pow)
|
local bitChanged = bit32.band(bitsChanged, pow)
|
||||||
print("HealthBar.onStatesChange 2 " .. bitChanged .. " " .. bitsChanged .. " " .. pow)
|
|
||||||
if bitChanged ~= 0 then
|
if bitChanged ~= 0 then
|
||||||
HealthBar.toggleIcon(bitChanged)
|
HealthBar.toggleIcon(bitChanged)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue