Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 26, 2011, 6:22:13 PM (12 years ago)
Author:
dafrick
Message:

Removing some unused variables and taking care of some other warnings (NULL as argument to non-pointer and depricated use of COUT).

Location:
code/trunk/src/modules
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/modules/pong/PongAI.cc

    r8729 r8952  
    164164            if (!this->bChangedRandomOffset_)
    165165            {
    166                 float timetohit = (-this->ball_->getPosition().x + this->ball_->getFieldDimension().x / 2 * sgn(this->ball_->getVelocity().x)) / this->ball_->getVelocity().x;
     166                float timetohit = (-ballpos.x + this->ball_->getFieldDimension().x / 2 * sgn(ballvel.x)) / ballvel.x;
    167167                if (timetohit < 0.05)
    168168                {
  • code/trunk/src/modules/questsystem/QuestManager.cc

    r8891 r8952  
    9797        if(quest == NULL)
    9898        {
    99             COUT(1) << "Quest pointer is NULL." << endl;
     99            orxout(internal_error, context::quests) << "Quest pointer is NULL." << endl;
    100100            return false;
    101101        }
     
    139139        if(hint == NULL)
    140140        {
    141             COUT(1) << "Hint pointer is NULL." << endl;
     141            orxout(internal_error, context::quests) << "Quest pointer is NULL." << endl;
    142142            return false;
    143143        }
Note: See TracChangeset for help on using the changeset viewer.