- Timestamp:
- Dec 1, 2015, 10:03:10 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/campaignHS15/src/orxonox/controllers/DivisionController.cc
r10886 r10909 43 43 this->myFollower_ = 0; 44 44 this->myWingman_ = 0; 45 this->actionTimer_.setTimer(ACTION_INTERVAL, true, createExecutor(createFunctor(&DivisionController::action, this)));45 //this->actionTimer_.setTimer(ACTION_INTERVAL, true, createExecutor(createFunctor(&DivisionController::action, this))); 46 46 } 47 47 … … 68 68 return; 69 69 SUPER(DivisionController, tick, dt); 70 if (this->timeOffset_ >= 0.0f && this->timeOffset_ <= 0.5f && !this->bActionCalled_) 71 { 72 this->action(); 73 this->bActionCalled_ = true; 74 } 75 if (this->timeOffset_ > 1.0f) 76 { 77 this->bActionCalled_ = false; 78 } 79 80 70 81 } 71 82 void DivisionController::action()
Note: See TracChangeset
for help on using the changeset viewer.