Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 26, 2011, 6:22:13 PM (13 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).

File:
1 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                {
Note: See TracChangeset for help on using the changeset viewer.