1
0
Fork 1
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:
scrawl 2016-07-11 23:03:04 +02:00 committed by GitHub
commit 33ab9db9f6

View file

@ -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;