mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-26 17:16:20 +00:00
Changed: Replaced math.mod by math.fmod in Ring lua files
This commit is contained in:
parent
36a537a88e
commit
8099217145
4 changed files with 4 additions and 4 deletions
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue