Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8952 for code/trunk


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).

Location:
code/trunk/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/libraries/network/MasterServer.cc

    r8937 r8952  
    8787
    8888    /* force-disconnect the server */ 
    89     enet_peer_disconnect( shandle.result.peer, NULL );
     89    enet_peer_disconnect( shandle.result.peer, 0 );
    9090
    9191    /* actually remove the entry from the server list by address */
  • code/trunk/src/libraries/network/packet/Gamestate.cc

    r8858 r8952  
    532532    assert(origHeader.getDataSize() < 500);
    533533   
    534     bool diffedObject = false;
    535534    if( findObject(baseDataPtr, baseDataEnd, origHeader) )
    536535    {
     
    543542//         orxout(verbose, context::packets) << "diffing object in order: " << Synchronisable::getSynchronisable(origHeader.getObjectID())->getIdentifier()->getName() << endl;
    544543        diffObject(destDataPtr, origDataPtr, baseDataPtr, origHeader, sizesIt);
    545         diffedObject = true;
    546544      }
    547545      else
     
    567565//           orxout(verbose, context::packets) << "diffing object out of order: " << Synchronisable::getSynchronisable(origHeader.getObjectID())->getIdentifier()->getName() << endl;
    568566          diffObject(destDataPtr, origDataPtr, baseDataPtr, origHeader, sizesIt);
    569           diffedObject = true;
    570567        }
    571568        else
  • 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        }
  • code/trunk/src/orxonox/gametypes/TeamBaseMatch.cc

    r8858 r8952  
    101101        if (pawn1 && base)
    102102        {
    103             std::map<PlayerInfo*, int>::const_iterator it1 = this->teamnumbers_.find(pawn1->getPlayer());
    104103            int teamnrbase = -1;
    105104            int teamnrplayer = this->getTeam(pawn1->getPlayer());
Note: See TracChangeset for help on using the changeset viewer.