Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 14, 2011, 10:29:18 PM (13 years ago)
Author:
jo
Message:

Code clean up.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/ai2/src/orxonox/controllers/ArtificialController.cc

    r8757 r8758  
    317317        if (!this->getControllableEntity())
    318318            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 ??
    319322    }
    320323
     
    11351138    {
    11361139        int max=10, i=0, j=0, k=0;
    1137         if(!pawn) {COUT(0)<<"NO PAWN"<<std::endl; return;}
     1140        if(!pawn) return;
    11381141        while(i<max)
    11391142        {
     
    11511154                    k++;
    11521155                    if(wMode==NULL) continue;
    1153                     COUT(0)<<wMode->getName()<<": 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;
    11541157                }
    11551158            }
Note: See TracChangeset for help on using the changeset viewer.