Preserve wave type when randomizing

This commit is contained in:
nucular 2014-05-26 18:03:07 +02:00
parent b12d141682
commit 528321dce3

View File

@ -459,7 +459,11 @@ end
function sfxr.Sound:randomize(seed)
if seed then setseed(seed) end
local wavetype = self.wavetype
self:resetParameters()
self.wavetype = wavetype
if maybe() then
self.repeatspeed = random(0, 1)
end