Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 3, 2014, 9:44:23 PM (10 years ago)
Author:
landauf
Message:

removed unused code (some of the code was after a 'return' statement and thus never executed)

File:
1 edited

Legend:

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

    r9963 r9964  
    6161            void setNextCheckpointsAsVector3(const Vector3& checkpoints);
    6262            Vector3 getNextCheckpointsAsVector3();
    63             Vector3 getVirtualNextCheckpointsAsVector3() const;
    64             void setNextVirtualCheckpointsAsVector3(const Vector3& checkpoints);
    65             int changeVirtualToRealCheckPoint(int);
    66 
    67             const std::set<int>& getVirtualNextCheckpoints() const
    68             {
    69                 return this->nextCheckpointsVirtual_;
    70             }
    7163
    7264            std::set<int> getNextCheckpoints()
    7365            {
    7466                return nextCheckpoints_;
    75                 std::set<int> temp;
    76                 std::set<int> temp2=getVirtualNextCheckpoints();
    77                 for (std::set<int>::iterator it = temp2.begin(); it!=temp2.end(); ++it){
    78                     temp.insert(changeVirtualToRealCheckPoint((*it)));
    79                 }
    80                 return temp;
    8167            }
    8268            inline void setLast(bool isLast)
     
    120106            float timeLimit_; ///< The time limit (from the start of the level) to reach this check point. If the check point is reached after this time, the game ends and the player looses.
    121107            std::vector<PlayerInfo*> players_; ///< The player that reached the checkpoint
    122             std::set<int>  nextCheckpointsVirtual_;
    123             std::map<int,int> virtualToRealCheckPoints_; // if virtualChepoint was inserted the original can be reconstructed
    124108    };
    125109}
Note: See TracChangeset for help on using the changeset viewer.