Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 12011


Ignore:
Timestamp:
May 25, 2018, 3:06:32 PM (6 years ago)
Author:
seilerra
Message:

last version with deleted comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/Hover_FS18/src/modules/hover/Hover.cc

    r11909 r12011  
    5757        SUPER(Hover, tick, dt);
    5858
    59         /*if(this->firstTick_ && this->origin_)
    60         {
    61             this->firstTick_ = false;
    62 
    63             //Generate 5 flags randomly
    64             for ( int i = 0; i < 5; i++ )
    65             {
    66                 HoverFlag* flag = new HoverFlag(origin_->getContext());
    67                 flag->init(rand()%numCells, rand()%numCells, cellSize);
    68                 flags_.push_back(flag);
    69             }
    70 
    71         }//firsttick end*/
    72 
    73         // Check if ship collided with one of the flags
    74         /*for ( unsigned int i = 0; i < flags_.size(); i++ ){
    75             if(flags_[i]->getCollided()){
    76                 flags_[i]->destroyLater();
    77                 flags_.erase (flags_.begin()+i);
    78             }
    79         }
    80         numberOfFlags_ = flags_.size();*/
    8159    }
    8260}
Note: See TracChangeset for help on using the changeset viewer.