Changeset 5876 for code/branches/core5/src/orxonox/gamestates/GSRoot.cc
- Timestamp:
- Oct 4, 2009, 11:08:14 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core5/src/orxonox/gamestates/GSRoot.cc
r5855 r5876 48 48 , timeFactorPauseBackup_(1.0f) 49 49 { 50 this->ccSetTimeFactor_ = 0;51 this->ccPause_ = 0;52 50 } 53 51 … … 63 61 64 62 // 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); 67 65 68 66 // 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); 71 69 } 72 70 73 71 void GSRoot::deactivate() 74 72 { 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 */88 73 } 89 74
Note: See TracChangeset
for help on using the changeset viewer.