Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 19, 2018, 4:11:27 PM (6 years ago)
Author:
andera
Message:

new botpointer.mesh added. Bug at the end of the game found not fixed yet

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/RacingBots_FS18/src/modules/gametypes/SpaceRaceController.cc

    r11720 r11893  
    2020 *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
    2121 *
    22  *  Created on: Oct 8, 2012
     22 *  Created on: Oct 8, 2012findCheck
    2323 *      Author: purgham
    2424 */
     
    127127                    continue;
    128128                }
    129                 if (findCheckpoint(checkpointIndex) == nullptr)
     129                if (findCheckpoint(checkpointIndex) == nullptr){
     130                    orxout()<<"nullpointer @ SpaceraceController line 130"<< endl;
    130131                    orxout(internal_warning) << "Problematic Point: " << checkpointIndex << endl;
     132                }
    131133                else
    132134                    numberOfWays += rekSimulationCheckpointsReached(findCheckpoint(checkpointIndex), zaehler);
     
    223225    RaceCheckPoint* SpaceRaceController::findCheckpoint(int index) const
    224226    {
    225         for (RaceCheckPoint* checkpoint : this->checkpoints_)
     227        for (RaceCheckPoint* checkpoint : this->checkpoints_){
    226228            if (checkpoint->getCheckpointIndex() == index)
    227229                return checkpoint;
     230        }
     231
    228232        return nullptr;
    229233    }
     
    328332       
    329333        this->boostControl();
     334        if (nextRaceCheckpoint_ == nullptr) orxout() << "nextRaceCheckpoint_ equals to nullpointer look @line 334 SpaceRaceController.cc" << endl;
    330335        this->moveToPosition(nextRaceCheckpoint_->getPosition());
    331336        this->boostControl();
Note: See TracChangeset for help on using the changeset viewer.