move spark_particle's mknew call to the right spot

This commit is contained in:
Kistaro Windrider 2023-10-01 00:46:32 -07:00
parent 2e46d87a84
commit dae108c231
Signed by: kistaro
SSH Key Fingerprint: SHA256:TBE2ynfmJqsAf0CP6gsflA0q5X5wD5fVKWPsZ7eVUg8

View File

@ -1790,6 +1790,7 @@ function boom(x,y,boominess,is_boss)
end
spark_particle={}
mknew(spark_particle)
function spark_particle:move()
if (rnd(4) < 1) self.sidx += 1
@ -1802,7 +1803,6 @@ end
function spark_particle:draw()
pset(self.x,self.y,self.sprs[self.sidx])
end
mknew(spark_particle)
function spark(sprs, x, y, butts, thrust, odds, fg)
if (sprs==nil or flr(rnd(odds)) ~= 0) return