Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 18, 2018, 5:23:29 PM (6 years ago)
Author:
landauf
Message:

[SOBv2_HS17] removed unused variables, added some initializations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/Presentation_HS17_merge/src/modules/superorxobros/SOB.cc

    r11766 r11769  
    6060    {
    6161        RegisterObject(SOB);
    62         camera = nullptr;
    6362
    6463        this->center_ = nullptr;
     
    6968        timeLeft_=400.0;
    7069        done_ = true;
     70        newHighscore = false;
    7171        lvl_ = 1;
    7272
     
    7979    SOB::~SOB()
    8080    {
    81         if (this->isInitialized())
    82             this->cleanup();
    8381    }
    84 
    85     void SOB::cleanup()
    86     {
    87         camera = nullptr;
    88     }
    89 
    90 
    9182
    9283    void SOB::start()
     
    113104        Gametype::start();
    114105
    115         if (figure_ != nullptr)
    116         {
    117             camera = figure_->getCamera();
    118         }
    119 
    120106    }
    121107
    122108    void SOB::end()
    123109    {
    124         cleanup();
    125110        GSLevel::startMainMenu();
    126111        Deathmatch::end();
     
    128113
    129114    void SOB::restart() {
    130         cleanup();
    131 
    132115        // HACK - only method I found to simply reload the level
    133116        Game::getInstance().popState();
Note: See TracChangeset for help on using the changeset viewer.