Changeset 3038 for code/trunk/src/orxonox/objects/gametypes/Gametype.cc
- Timestamp:
- May 24, 2009, 5:42:50 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/objects/gametypes/Gametype.cc
r3033 r3038 130 130 { 131 131 ControllableEntity* oldentity = it->first->getControllableEntity(); 132 132 133 133 ControllableEntity* entity = this->defaultControllableEntity_.fabricate(oldentity->getCreator()); 134 134 if (oldentity->getCamera()) … … 143 143 } 144 144 145 it->first->stopControl(oldentity, true);146 145 it->first->startControl(entity); 147 146 } … … 421 420 422 421 void Gametype::addTime(float t) 423 { 422 { 424 423 if (this->timeLimit_ == 0) 425 424 this->time_ -= t; … … 429 428 430 429 void Gametype::removeTime(float t) 431 { 430 { 432 431 if (this->timeLimit_ == 0) 433 432 this->time_ += t; … … 437 436 438 437 void Gametype::resetTimer() 439 { 438 { 440 439 this->resetTimer(timeLimit_); 441 440 } 442 441 443 442 void Gametype::resetTimer(float t) 444 { 443 { 445 444 this->timeLimit_ = t; 446 445 this->time_ = t;
Note: See TracChangeset
for help on using the changeset viewer.