Trim trailing whitespace

This commit is contained in:
Redox 2023-08-19 21:27:01 +02:00
parent a0c98e0aa7
commit f07bb2d71c
No known key found for this signature in database
GPG Key ID: C10A433A95068388

View File

@ -19,7 +19,7 @@ BUILDER:StartStorableVars()
BUILDER:GetSet("MaxPitch", 0, {editor_sensitivity = 0.125})
BUILDER:SetPropertyGroup("playback")
BUILDER:GetSet("PlayCount", 1,
BUILDER:GetSet("PlayCount", 1,
{editor_onchange =
function(self, num)
self.sens = 0.25
@ -239,10 +239,10 @@ function PART:SetPath(path)
path = info.sound
end
if
if
not path:StartWith("http")
or not pac.resource.Download(path, function(path) load("data/" .. path) end)
then load("sound/" .. path)
end
end
@ -259,14 +259,14 @@ function PART:PlaySound(_, additiveVolumeFraction)
if not stream:IsValid() then return end
if self.Sequential then
self.seq_index = self.seq_index or 1
local basepath = self.paths[self.seq_index] or self.paths[1]
local snd = "sound/".. basepath
local cached_path = "data/pac3_cache/downloads/" .. pac.Hash(basepath) .. ".dat"
if string.find(basepath, "^http") then
snd = cached_path
end
@ -282,7 +282,7 @@ function PART:PlaySound(_, additiveVolumeFraction)
self.seq_index = self.seq_index + #self.paths
end
end
stream:SetAdditiveVolumeModifier(additiveVolumeFraction)
if self.last_stream:IsValid() and not self.Overlapping and not self.PauseOnHide then