what? [skip ci]

This commit is contained in:
DelinWorks 2022-06-12 03:10:49 +03:00
parent b670066756
commit 2836420fb3
1 changed files with 3 additions and 5 deletions

View File

@ -861,11 +861,9 @@ void ParticleSystem::addParticles(int count, int animationIndex, int animationCe
Vec2 point = {0, 0};
{
int rand0 = RANDOM_KISS_ABS() * mask.points.size();
int index = MIN(rand0, mask.points.size() - 1);
point = mask.points[index];
}
int rand0 = RANDOM_KISS_ABS() * mask.points.size();
int index = MIN(rand0, mask.points.size() - 1);
point = mask.points[index];
point -= size / 2;