Changeset 5829 for code/branches/core5/src/modules/gamestates/GSLevel.cc
- Timestamp:
- Sep 28, 2009, 9:31:24 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core5/src/modules/gamestates/GSLevel.cc
r5820 r5829 116 116 { 117 117 // keybind console command 118 FunctorMember<GSLevel>* functor1 = createFunctor(&GSLevel::keybind); 119 functor1->setObject(this); 120 ccKeybind_ = createConsoleCommand(functor1, "keybind"); 118 ccKeybind_ = createConsoleCommand(createFunctor(&GSLevel::keybind, this), "keybind"); 121 119 CommandExecutor::addConsoleCommandShortcut(ccKeybind_); 122 FunctorMember<GSLevel>* functor2 = createFunctor(&GSLevel::tkeybind); 123 functor2->setObject(this); 124 ccTkeybind_ = createConsoleCommand(functor2, "tkeybind"); 120 ccTkeybind_ = createConsoleCommand(createFunctor(&GSLevel::tkeybind, this), "tkeybind"); 125 121 CommandExecutor::addConsoleCommandShortcut(ccTkeybind_); 126 122 // set our console command as callback for the key detector
Note: See TracChangeset
for help on using the changeset viewer.