Changeset 7788 for code/branches/presentation2/src/orxonox
- Timestamp:
- Dec 21, 2010, 6:09:09 PM (14 years ago)
- Location:
- code/branches/presentation2
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2
- Property svn:mergeinfo changed
/code/branches/network3 (added) merged: 7333,7336-7337,7344 /code/branches/network4 (added) merged: 7497,7718,7753-7755 /code/branches/network5 (added) merged: 7757-7759,7772-7778,7780-7781
- Property svn:mergeinfo changed
-
code/branches/presentation2/src/orxonox/controllers/NewHumanController.cc
r7284 r7788 375 375 { 376 376 // CCOUT(0) << "testing object as target" << endl; 377 if (itr->movable->isInScene() && itr->movable->getMovableType() == "Entity" /*&& itr->distance > 500*/)377 if (itr->movable->isInScene() && itr->movable->getMovableType() == "Entity" && itr->distance > 200) 378 378 { 379 379 // Try to cast the user pointer -
code/branches/presentation2/src/orxonox/gametypes/Gametype.cc
r7284 r7788 79 79 else 80 80 this->scoreboard_ = 0; 81 82 /* HACK HACK HACK */ 83 this->dedicatedAddBots_ = createConsoleCommand( "dedicatedAddBots", createExecutor( createFunctor(&Gametype::addBots, this) ) ); 84 this->dedicatedKillBots_ = createConsoleCommand( "dedicatedKillBots", createExecutor( createFunctor(&Gametype::killBots, this) ) ); 85 /* HACK HACK HACK */ 81 86 } 82 87 … … 86 91 { 87 92 this->gtinfo_->destroy(); 93 if( this->dedicatedAddBots_ ) 94 delete this->dedicatedAddBots_; 95 if( this->dedicatedKillBots_ ) 96 delete this->dedicatedKillBots_; 88 97 } 89 98 } -
code/branches/presentation2/src/orxonox/gametypes/Gametype.h
r7284 r7788 184 184 // Config Values 185 185 std::string scoreboardTemplate_; 186 187 /* HACK HACK HACK */ 188 ConsoleCommand* dedicatedAddBots_; 189 ConsoleCommand* dedicatedKillBots_; 190 /* HACK HACK HACK */ 186 191 }; 187 192 }
Note: See TracChangeset
for help on using the changeset viewer.