mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 21:49:55 +00:00
Merge pull request #1000 from MiroslavR/particle-range
Fix doubled particle spawn range
This commit is contained in:
commit
33ab9db9f6
1 changed files with 3 additions and 3 deletions
|
@ -918,9 +918,9 @@ namespace NifOsg
|
||||||
emitter->setShooter(shooter);
|
emitter->setShooter(shooter);
|
||||||
|
|
||||||
osgParticle::BoxPlacer* placer = new osgParticle::BoxPlacer;
|
osgParticle::BoxPlacer* placer = new osgParticle::BoxPlacer;
|
||||||
placer->setXRange(-partctrl->offsetRandom.x(), partctrl->offsetRandom.x());
|
placer->setXRange(-partctrl->offsetRandom.x() / 2.f, partctrl->offsetRandom.x() / 2.f);
|
||||||
placer->setYRange(-partctrl->offsetRandom.y(), partctrl->offsetRandom.y());
|
placer->setYRange(-partctrl->offsetRandom.y() / 2.f, partctrl->offsetRandom.y() / 2.f);
|
||||||
placer->setZRange(-partctrl->offsetRandom.z(), partctrl->offsetRandom.z());
|
placer->setZRange(-partctrl->offsetRandom.z() / 2.f, partctrl->offsetRandom.z() / 2.f);
|
||||||
|
|
||||||
emitter->setPlacer(placer);
|
emitter->setPlacer(placer);
|
||||||
return emitter;
|
return emitter;
|
||||||
|
|
Loading…
Reference in a new issue