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/SpaceRaceManager.h

    r9260 r9262  
    6262            void addCheckpoint(RaceCheckPoint* checkpoint);
    6363            RaceCheckPoint* getCheckpoint(unsigned int index) const;
    64             int getIndex(RaceCheckPoint* checkpoint);
     64
     65            RaceCheckPoint* findCheckpoint(int index) const;
    6566
    6667            void checkpointReached(RaceCheckPoint* check, PlayerInfo* player);
     
    6970
    7071        protected:
    71             void setRadVis(PlayerInfo* player, bool bVisible); ///< sets RadarVisibility of the checkpoints the player can reach.
     72            void setRadarVisibility(PlayerInfo* player, bool bVisible); ///< sets RadarVisibility of the checkpoints the player can reach.
    7273
    7374        private:
Note: See TracChangeset for help on using the changeset viewer.