Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 4, 2009, 11:08:14 PM (15 years ago)
Author:
rgrieder
Message:

Cleanup in the GameStates (also moved debug overlay to the GraphicsManager).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core5/src/orxonox/gamestates/GSRoot.cc

    r5855 r5876  
    4848        , timeFactorPauseBackup_(1.0f)
    4949    {
    50         this->ccSetTimeFactor_ = 0;
    51         this->ccPause_ = 0;
    5250    }
    5351
     
    6361
    6462        // time factor console command
    65         this->ccSetTimeFactor_ = createConsoleCommand(createFunctor(&GSRoot::setTimeFactor, this), "setTimeFactor");
    66         CommandExecutor::addConsoleCommandShortcut(this->ccSetTimeFactor_).accessLevel(AccessLevel::Offline).defaultValue(0, 1.0);
     63        ConsoleCommand* command = createConsoleCommand(createFunctor(&GSRoot::setTimeFactor, this), "setTimeFactor");
     64        CommandExecutor::addConsoleCommandShortcut(command).accessLevel(AccessLevel::Offline).defaultValue(0, 1.0);
    6765
    6866        // time factor console command
    69         this->ccPause_ = createConsoleCommand(createFunctor(&GSRoot::pause, this), "pause");
    70         CommandExecutor::addConsoleCommandShortcut(this->ccPause_).accessLevel(AccessLevel::Offline);
     67        command = createConsoleCommand(createFunctor(&GSRoot::pause, this), "pause");
     68        CommandExecutor::addConsoleCommandShortcut(command).accessLevel(AccessLevel::Offline);
    7169    }
    7270
    7371    void GSRoot::deactivate()
    7472    {
    75 /*
    76         if (this->ccSetTimeFactor_)
    77         {
    78             delete this->ccSetTimeFactor_;
    79             this->ccSetTimeFactor_ = 0;
    80         }
    81 
    82         if (this->ccPause_)
    83         {
    84             delete this->ccPause_;
    85             this->ccPause_ = 0;
    86         }
    87 */
    8873    }
    8974
Note: See TracChangeset for help on using the changeset viewer.