Changed: Replaced math.mod by math.fmod in Ring lua files

This commit is contained in:
kervala 2013-11-13 21:38:23 +01:00
parent 79b60462a9
commit 7d926d0989
4 changed files with 4 additions and 4 deletions

View file

@ -371,7 +371,7 @@ local registerFeature = function ()
--------------------
convertToWidgetValue =
function(value)
local result = math.mod(math.floor(180 * value / math.pi), 360)
local result = math.fmod(math.floor(180 * value / math.pi), 360)
if result < 0 then result = 360 + result end
return result
end,

View file

@ -78,7 +78,7 @@ feature.Components.EasterEgg =
function(value)
local angle = value
if angle == nil then angle = 0 end
local result = math.mod(math.floor(180 * angle / math.pi), 360)
local result = math.fmod(math.floor(180 * angle / math.pi), 360)
if result < 0 then result = 360 + result end
return result
end,

View file

@ -635,7 +635,7 @@ function CharTracking:onDraw()
self.LastRefreshTime = nltime.getLocalTime() / 1000
--self:getWindow():find("refreshText").active = false
else
local waitText = i18n.get("uiRAP_WaitChars" .. math.mod(os.time(), 3))
local waitText = i18n.get("uiRAP_WaitChars" .. math.fmod(os.time(), 3))
self:setInfoMessage(waitText)
--local refreshText = self:getWindow():find("refreshText")
--if not self.ListReceived then

View file

@ -613,7 +613,7 @@ function PlayerTracking:onDraw()
local timeInSec = nltime.getLocalTime() / 1000
if self.WaitingList then
local waitText = i18n.get("uiRAP_WaitMsg" .. math.mod(os.time(), 3))
local waitText = i18n.get("uiRAP_WaitMsg" .. math.fmod(os.time(), 3))
if not self.ListReceived then
self:setInfoMessage(waitText)
waitTextColor.A = 127 + 127 * (0.5 + 0.5 * math.cos(6 * timeInSec))