Changeset 9709 for code/branches/invaders/src/modules/invader/Invader.cc
- Timestamp:
- Oct 21, 2013, 3:53:13 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/invaders/src/modules/invader/Invader.cc
r9702 r9709 42 42 #include "chat/ChatManager.h" 43 43 44 #include "InvaderShip.h" 45 // ! HACK 46 #include "infos/PlayerInfo.h" 47 48 #include "InvaderCenterPoint.h" 49 44 50 namespace orxonox 45 51 { … … 50 56 RegisterObject(Invader); 51 57 58 this->center_ = 0; 59 //this->context = context; 52 60 } 53 61 … … 56 64 } 57 65 66 // inject custom player controller 67 /** void Invader::spawnPlayer(PlayerInfo* player) 68 { 69 assert(player); 70 71 //player->startControl(new InvaderShip(this->center_->getContext() ) ); 72 }*/ 73 58 74 void Invader::start() 59 75 { … … 61 77 this->bForceSpawn_ = true; 62 78 79 if (this->center_ == NULL) // abandon mission! 80 { 81 orxout(internal_error) << "Invader: No Centerpoint specified." << endl; 82 GSLevel::startMainMenu(); 83 return; 84 } 63 85 // Call start for the parent class. 64 86 Deathmatch::start();
Note: See TracChangeset
for help on using the changeset viewer.