Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 16, 2011, 4:20:26 PM (12 years ago)
Author:
eceline
Message:

level Spacerace2

File:
1 edited

Legend:

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

    r8934 r8940  
    4545
    4646        this->bCheckpointIndex_ = 0;
    47         this->bIsLast_ = false;
     47        //this->bIsLast_ = false;
    4848        this->bTimeLimit_ = 0;
    4949        this->isVisible_=false;
     
    9090    {
    9191        SUPER(RaceCheckPoint, XMLPort, xmlelement, mode);
    92 
     92        Vector3 v= Vector3(0,0,0);
    9393        XMLPortParam(RaceCheckPoint, "checkpointindex", setCheckpointIndex, getCheckpointIndex, xmlelement, mode).defaultValues(0);
    9494        XMLPortParam(RaceCheckPoint, "islast", setLast, getLast, xmlelement, mode).defaultValues(false);
    9595        XMLPortParam(RaceCheckPoint, "timelimit", setTimelimit, getTimeLimit, xmlelement, mode).defaultValues(0);
    96     XMLPortParamTemplate(RaceCheckPoint, "nextcheckpoints", setNextcheckpoint, getNextcheckpoint, xmlelement, mode,const Vector3&);
     96    XMLPortParamTemplate(RaceCheckPoint, "nextcheckpoints", setNextcheckpoint, getNextcheckpoint, xmlelement, mode,const Vector3&).defaultValues(v);
    9797    }
    9898
     
    102102
    103103        SpaceRace* gametype = orxonox_cast<SpaceRace*>(this->getGametype().get());
     104        assert(gametype);
    104105        if (gametype && this->getCheckpointIndex() == gametype->getCheckpointReached(player) && bIsTriggered)
    105106        {
     
    115116            else
    116117            {
    117                 gametype->newCheckpointReached(this);
     118                gametype->newCheckpointReached(this,player);
    118119                this->setRadarObjectColour(ColourValue::Green); //sets the radar colour of the checkpoint to green if it is reached, else it is red.
    119120            }
     
    127128        {
    128129            SpaceRace* gametype = orxonox_cast<SpaceRace*>(this->getGametype().get());
     130            assert(gametype);
    129131            if (gametype)
    130132            {
Note: See TracChangeset for help on using the changeset viewer.