Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9554 for code/branches/core6


Ignore:
Timestamp:
Mar 17, 2013, 7:02:25 PM (12 years ago)
Author:
landauf
Message:

fixed some warnings

Location:
code/branches/core6/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core6/src/modules/gametypes/RaceCheckPoint.cc

    r9526 r9554  
    157157        if (players_.size() > 0)
    158158        {
    159             for (int i = 0; i < players_.size(); i++)
     159            for (size_t i = 0; i < players_.size(); i++)
    160160            {
    161161                if (this->players_[i]->getClientID() == clientID)
     
    172172        if (players_.size() > 0)
    173173        {
    174             for (int i = 0; i < players_.size(); i++)
     174            for (size_t i = 0; i < players_.size(); i++)
    175175            {
    176176                if (this->players_[i] == player)
  • code/branches/core6/src/modules/gametypes/RaceCheckPoint.h

    r9526 r9554  
    7070            }
    7171
    72             const std::set<int>& getNextCheckpoints()
     72            std::set<int> getNextCheckpoints()
    7373            {
    7474                return nextCheckpoints_;
  • code/branches/core6/src/modules/gametypes/SpaceRaceController.cc

    r9526 r9554  
    8686
    8787        }//ausgabe*/
    88 
     88        /*
    8989        for (std::vector<RaceCheckPoint*>::iterator it = checkpoints.begin(); it != checkpoints.end(); ++it)
    9090        {
     
    100100                }
    101101            }
    102         }/*
     102        }
     103        */
     104        /*
    103105        for(std::vector<RaceCheckPoint*>::iterator it=checkpoints_.begin(); it!=checkpoints_.end(); it++)
    104106        {
     
    301303    {
    302304        for (size_t i = 0; i < this->checkpoints_.size(); ++i)
    303         if (this->checkpoints_[i]->getCheckpointIndex() == index)
    304         return this->checkpoints_[i];
     305            if (this->checkpoints_[i]->getCheckpointIndex() == index)
     306                return this->checkpoints_[i];
    305307        return NULL;
    306308    }
     
    340342        //orxout()<<"temp nach ausgabe: "<<previousCheckpoint->getVirtualNextCheckpointsAsVector3().x<<previousCheckpoint->getVirtualNextCheckpointsAsVector3().y<<previousCheckpoint->getVirtualNextCheckpointsAsVector3().z<<endl;
    341343        //OrxAssert(virtualCheckPointIndex < -1, "TO much virtual cp");
    342         /*orxout()<<"id: "<< previousCheckpoint->getCheckpointIndex() <<", following:"<<indexFollowingCheckPoint<<" :       "<<temp.x<<", "<<temp.y<<", "<<temp.z<<";       ";
     344        orxout()<<"id: "<< previousCheckpoint->getCheckpointIndex() <<", following:"<<indexFollowingCheckPoint<<" :       "<<temp.x<<", "<<temp.y<<", "<<temp.z<<";       ";
    343345         temp=previousCheckpoint->getNextCheckpointsAsVector3();
    344346         orxout()<<"id: "<< previousCheckpoint->getCheckpointIndex() <<":       "<<temp.x<<", "<<temp.y<<", "<<temp.z<<";       ";
    345          orxout()<<endl;*//*
     347         orxout()<<endl;
    346348        return newTempRaceCheckPoint;
    347349    }*/
  • code/branches/core6/src/orxonox/worldentities/pawns/Pawn.cc

    r9546 r9554  
    9898
    9999        this->setSyncMode(ObjectDirection::Bidirectional); // needed to synchronise e.g. aimposition
    100 
    101         /* sewper awesome optimization. This loads all the files required for
    102          * the big explosion once in the beginning to make sure the game does
    103          * not start lagging at the first in-action explosion.
    104          */
    105         BigExplosion *chunk = new BigExplosion(this->getCreator());
    106100    }
    107101
Note: See TracChangeset for help on using the changeset viewer.