Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
KnewOne
VuhDo
Commits
7b3f7385
Commit
7b3f7385
authored
10 years ago
by
Ivaria
Browse files
Options
Download
Email Patches
Plain Diff
Fixed floating point number comparison when closing/canceling VuhDo Options
parent
7f43a6c3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
2 deletions
+31
-2
VuhDoOptions/VuhDoNewOptionsTabbedFrame.lua
VuhDoOptions/VuhDoNewOptionsTabbedFrame.lua
+7
-1
VuhDoSerializer.lua
VuhDoSerializer.lua
+1
-1
changelog.txt
changelog.txt
+23
-0
No files found.
VuhDoOptions/VuhDoNewOptionsTabbedFrame.lua
View file @
7b3f7385
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
VuhDoSerializer.lua
View file @
7b3f7385
...
...
@@ -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"
);
...
...
This diff is collapsed.
Click to expand it.
changelog.txt
View file @
7b3f7385
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.
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment