- Timestamp:
- Mar 22, 2009, 9:40:35 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/miniprojects/src/orxonox/objects/gametypes/TeamGametype.cc
r2768 r2818 34 34 #include "objects/Teamcolourable.h" 35 35 #include "objects/worldentities/TeamSpawnPoint.h" 36 #include "objects/infos/PlayerInfo.h" // remove this37 36 38 37 namespace orxonox … … 151 150 } 152 151 153 void TeamGametype::player PostSpawn(PlayerInfo* player)152 void TeamGametype::playerStartsControllingPawn(PlayerInfo* player, Pawn* pawn) 154 153 { 155 154 if (!player) … … 160 159 if (it_player != this->teamnumbers_.end() && it_player->second >= 0 && it_player->second < this->teamcolours_.size()) 161 160 { 162 if (p layer->getControllableEntity())161 if (pawn) 163 162 { 164 std::set<WorldEntity*> pawnAttachments = p layer->getControllableEntity()->getAttachedObjects();163 std::set<WorldEntity*> pawnAttachments = pawn->getAttachedObjects(); 165 164 for (std::set<WorldEntity*>::iterator it = pawnAttachments.begin(); it != pawnAttachments.end(); ++it) 166 165 {
Note: See TracChangeset
for help on using the changeset viewer.