Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 2, 2012, 11:08:21 PM (12 years ago)
Author:
landauf
Message:

fixed bug in SpaceRaceManager - it used the wrong index to identify Checkpoints (the order in which they appear in the XML file instead of RaceCheckPoint::getCheckpointIndex())
+ some more cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/modules/gametypes/SpaceRace.h

    r9261 r9262  
    6161            virtual void end();
    6262
    63             virtual void newCheckpointReached(RaceCheckPoint* checkpoint, PlayerInfo* player);
    64 
    65             inline void setCheckpointReached(int index, PlayerInfo* player)
    66                 { this->checkpointReached_[player] = index;}
     63            void newCheckpointReached(RaceCheckPoint* checkpoint, PlayerInfo* player);
    6764            inline int getCheckpointReached(PlayerInfo* player)
    6865                { return this->checkpointReached_[player]; }
     
    8178
    8279        private:
    83             bool cantMove_;
     80            bool cantMove_;                                ///< Helper variable, used to stall the engines before the race starts.
    8481            std::map<PlayerInfo*, int> checkpointReached_; ///< The number of the last check point reached by each player.
    8582            bool bTimeIsUp_;                               ///< True if one of the check points is reached too late.
Note: See TracChangeset for help on using the changeset viewer.