Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 7, 2011, 2:38:31 PM (12 years ago)
Author:
eceline
Message:

RaceCheckPoint::fire doesn't work

File:
1 edited

Legend:

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

    r8954 r8959  
    2929#include "SpaceRace.h"
    3030
     31//#include "SpaceRaceManager.h"
     32
    3133#include "items/Engine.h"
    3234
     
    5456       
    5557       for (std::map<PlayerInfo*, Player>::iterator it = this->players_.begin(); it != this->players_.end(); ++it)
    56         {this->checkpointReached_[it->first]=0;}
     58        {this->checkpointReached_[it->first]=-1;}
    5759       
    5860       
     
    140142     
    141143    }
    142      
    143    
    144     }
    145 
    146         void SpaceRace::setV(SpaceRaceManager* m){
    147                 /*Vector3 v =Vector3(0,0,0);
     144    // for (std::map<PlayerInfo*, Player>::iterator it = this->players_.begin(); it != this->players_.end(); ++it)
     145      //  {if(this->getCheckpointReached(it->first)==-1) orxout()<<"index -1"<<endl;}
     146   
     147    }
     148
     149        void SpaceRace::setV(SpaceRaceManager* m){/*
     150                Vector3 v =Vector3(0,0,0);
    148151        int j=0;
    149152        for (std::map<PlayerInfo*, Player>::iterator it = this->players_.begin(); it != this->players_.end(); ++it)
     
    161164
    162165    void SpaceRace::newCheckpointReached(SpaceRaceManager* p, int index,PlayerInfo* pl)
    163     {
     166    {/*
    164167        this->checkpointReached_[pl]=index;
    165168        this->clock_.capture();
     
    171174        const_cast<GametypeInfo*>(this->getGametypeInfo())->sendAnnounceMessage(message);
    172175        ChatManager::message(message);
    173        
     176       */
    174177       
    175178    }
     
    194197void SpaceRace::playerEntered(PlayerInfo* player){
    195198        Gametype::playerEntered(player);
    196         //this->checkpointReached_[player]=0;
     199       
     200        this->checkpointReached_[player]=-1;
    197201        //this->playersAlive_++;
    198202    }
Note: See TracChangeset for help on using the changeset viewer.