forked from mirror/openmw-tes3mp
Fix doubled particle spawn range
This commit is contained in:
parent
432723bfe6
commit
9c6739f1b3
1 changed files with 3 additions and 3 deletions
|
@ -918,9 +918,9 @@ namespace NifOsg
|
|||
emitter->setShooter(shooter);
|
||||
|
||||
osgParticle::BoxPlacer* placer = new osgParticle::BoxPlacer;
|
||||
placer->setXRange(-partctrl->offsetRandom.x(), partctrl->offsetRandom.x());
|
||||
placer->setYRange(-partctrl->offsetRandom.y(), partctrl->offsetRandom.y());
|
||||
placer->setZRange(-partctrl->offsetRandom.z(), partctrl->offsetRandom.z());
|
||||
placer->setXRange(-partctrl->offsetRandom.x() / 2.f, partctrl->offsetRandom.x() / 2.f);
|
||||
placer->setYRange(-partctrl->offsetRandom.y() / 2.f, partctrl->offsetRandom.y() / 2.f);
|
||||
placer->setZRange(-partctrl->offsetRandom.z() / 2.f, partctrl->offsetRandom.z() / 2.f);
|
||||
|
||||
emitter->setPlacer(placer);
|
||||
return emitter;
|
||||
|
|
Loading…
Reference in a new issue