Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 11, 2018, 7:19:57 PM (6 years ago)
Author:
landauf
Message:

[AsteroidMining_HS17] fixed a bunch of memory leaks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/Presentation_HS17_merge/src/modules/asteroidmining/SpicedAsteroidBelt.cc

    r11732 r11735  
    8080
    8181        this->mDensity = 0.3;
     82        this->foggy = true;
    8283        this->fogDensity = 0.5;
    8384
     
    113114            }
    114115           
    115             Vector3* pos = new Vector3(radius*cos(sepp)*sin(globi), radius*sin(sepp)*sin(globi), radius*cos(globi));
    116             new SpicedAsteroidField(this->context, this->position + *pos, this->minSize, this->maxSize, width, segmentCount, this->foggy, this->mDensity, this->fogDensity);
     116            Vector3 pos(radius*cos(sepp)*sin(globi), radius*sin(sepp)*sin(globi), radius*cos(globi));
     117            new SpicedAsteroidField(this->context, this->position + pos, this->minSize, this->maxSize, width, segmentCount, this->foggy, this->mDensity, this->fogDensity);
    117118           
    118119        }
Note: See TracChangeset for help on using the changeset viewer.