Commit 7b3f7385 authored by Ivaria's avatar Ivaria
Browse files

Fixed floating point number comparison when closing/canceling VuhDo Options

parent 7f43a6c3
......@@ -41,8 +41,14 @@ local function VUHDO_countTableDiffs(aTable, anotherTable)
anotherTable = VUHDO_decompressIfCompressed(anotherTable);
for tKey, tValue in pairs(aTable) do
if ("table" == type(tValue)) then
local tType = type(tValue);
if ("table" == tType) then
tCount = tCount + VUHDO_countTableDiffs(tValue, anotherTable[tKey]);
elseif ("number" == tType) then
if (format("%0.4f", aTable[tKey]) ~= format("%0.4f", anotherTable[tKey])) then
tCount = tCount + 1;
end
else
if (aTable[tKey] ~= anotherTable[tKey]) then
tCount = tCount + 1;
......
......@@ -89,7 +89,7 @@ function VUHDO_serializeTable(aTable)
if "string" == type(tValue) then
tString = format("%sS%d+%s", tString, #tValue, tValue);
elseif "number" == type(tValue) then
tStrValue = tostring(floor(tValue * 10000) * 0.0001);
tStrValue = format("%0.4f", tValue);
tString = format("%sN%d+%s", tString, #tStrValue, tStrValue);
elseif "boolean" == type(tValue) then
tString = tString .. (tValue and "1" or "0");
......
Version 3.67.
Known issues:
-- Limited support for Garrison Bodyguards
-- Bodyguards can be used in panels when set to target or focus
-- Bodyguards have no unit ID so for now are only partially supported
-- AOE advisor not yet updated for Warlords of Draenor
-- Need new spell formulas and coefficients
-- Incoming heal estimation reported is not even close to accurate
-- Bug in Blizzard API UnitGetIncomingHeals() - returns bogus values
-- Holy Priest spells derived from Chakra stance behave oddly as of 6.0.2
-- Stance specific spells must all use the spell name Holy Word: Chastise
Bugfixes:
-- Fixed floating point number comparison when closing/canceling VuhDo Options
Improvements:
--------------------------------------------------------------
Version 3.66.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment