mirror of
https://github.com/OpenMW/openmw.git
synced 2025-05-06 05:11:24 +00:00
Use an initialization list in WrapAroundOperator's constructor
This commit is contained in:
parent
7400050b38
commit
ff2a51a484
1 changed files with 2 additions and 4 deletions
|
@ -1350,11 +1350,9 @@ void SkyManager::setCamera(osg::Camera *camera)
|
||||||
class WrapAroundOperator : public osgParticle::Operator
|
class WrapAroundOperator : public osgParticle::Operator
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
WrapAroundOperator(osg::Camera *camera, const osg::Vec3 &wrapRange): osgParticle::Operator()
|
WrapAroundOperator(osg::Camera *camera, const osg::Vec3 &wrapRange): osgParticle::Operator(),
|
||||||
|
mCamera(camera), mWrapRange(wrapRange), mHalfWrapRange(mWrapRange / 2.0)
|
||||||
{
|
{
|
||||||
mCamera = camera;
|
|
||||||
mWrapRange = wrapRange;
|
|
||||||
mHalfWrapRange = mWrapRange / 2.0;
|
|
||||||
mPreviousCameraPosition = getCameraPosition();
|
mPreviousCameraPosition = getCameraPosition();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue