62 - Minimap button rotates in radians
What steps will reproduce the problem?
1. Drag the minimap button
2.
3.
What is the expected output? What do you see instead?
It should drag smoothly with what's given.
What version of the product are you using?
3.0.1d
Do you have an error log of what happened?
No errors are shown, but the rotation looks like radians and not degrees.
Please provide any additional information below.
XPerl/XPerl.lua:81
local cos, sin, abs = math.cos math.sin math.abs
The math library functions operate in radians, but the config values are all in degrees.
Should it be?
local function cos(deg)
return math.cos(math.rad(deg))
end
local function sin(deg)
return math.sin(math.rad(deg))
end
- 3 comments
- 3 comments
Facts
- Last updated
- Aug 07, 2009
- Reported
- Oct 30, 2008
- Status
- Fixed - Developer made requested changes. QA should verify.
- Type
- Defect - A shortcoming, fault, or imperfection
- Priority
- Medium - Normal priority.
- Votes
- 0
- Reply
- #3
scorpie5 Oct 31, 2008 at 02:26 UTC - 0 likesBut I guess masking what was there earlier in the file did it.
- Reply
- #2
Zeksie Oct 31, 2008 at 00:54 UTC - 0 likesAhh, but I did mask the old versions of sin/cos.. So half a point for that :)
- Reply
- #1
Zeksie Oct 31, 2008 at 00:52 UTC - 0 likesThat rotate function has nothing at all to do with the minimap button. That's for rotating textures.