- Timestamp:
- Jul 14, 2011, 10:29:18 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ai2/src/orxonox/controllers/ArtificialController.cc
r8757 r8758 317 317 if (!this->getControllableEntity()) 318 318 this->removeFromFormation(); 319 this->bSetupWorked = false; // reset weapon information 320 this->numberOfWeapons = 0; 321 COUT(0)<<"ArtificialController::changedControllableEntity()"<<endl; //why is this function called more than once ?? 319 322 } 320 323 … … 1135 1138 { 1136 1139 int max=10, i=0, j=0, k=0; 1137 if(!pawn) {COUT(0)<<"NO PAWN"<<std::endl; return;}1140 if(!pawn) return; 1138 1141 while(i<max) 1139 1142 { … … 1151 1154 k++; 1152 1155 if(wMode==NULL) continue; 1153 COUT(0)<<wMode->get Name()<<": weaponpack "+multi_cast<std::string>(i-1)<<", weapon "<<multi_cast<std::string>(j-1)<<", weaponmode "<<multi_cast<std::string>(k-1)<<std::endl;1156 COUT(0)<<wMode->getIdentifier()->getName()<<": weaponpack "+multi_cast<std::string>(i-1)<<", weapon "<<multi_cast<std::string>(j-1)<<", weaponmode "<<multi_cast<std::string>(k-1)<<std::endl; 1154 1157 } 1155 1158 }
Note: See TracChangeset
for help on using the changeset viewer.