Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 2, 2010, 1:52:21 AM (14 years ago)
Author:
landauf
Message:

delete → destroy()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation3/src/modules/designtools/CreateStars.cc

    r7039 r7077  
    3434#include "core/XMLPort.h"
    3535#include "graphics/Billboard.h"
    36  
     36
    3737namespace orxonox
    3838{
     
    5656    CreateStars::~CreateStars()
    5757    {
    58         while( billboards_.size()!=0 ) 
     58        while( billboards_.size()!=0 )
    5959        {
    60             delete(billboards_.back());
     60            billboards_.back()->destroy();
    6161            billboards_.pop_back();
    6262
     
    6969    {
    7070
    71         for(int i=0; i < numStars_; i++) 
     71        for(int i=0; i < numStars_; i++)
    7272        {
    7373            Billboard* bb = new Billboard(this);
     
    8888            float teta;
    8989
    90             while(1) 
     90            while(1)
    9191            {
    9292                phi = rnd(2*pi);
     
    101101    }
    102102
    103     Vector3 CreateStars::PolarToCartesian(float phi, float teta, float radius) 
     103    Vector3 CreateStars::PolarToCartesian(float phi, float teta, float radius)
    104104    {
    105105        float x = radius * cos(phi) * sin(teta);
Note: See TracChangeset for help on using the changeset viewer.