Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 20, 2009, 4:27:38 PM (15 years ago)
Author:
scheusso
Message:

merged netp4 back to trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/network/GamestateManager.cc

    r3102 r3198  
    6363  GamestateManager::~GamestateManager()
    6464  {
     65    if( this->reference )
     66      delete this->reference;
     67    for( std::map<unsigned int, packet::Gamestate*>::iterator it = gamestateQueue.begin(); it != gamestateQueue.end(); it++ )
     68      delete (*it).second;
    6569    delete trafficControl_;
    6670  }
     
    133137//       COUT(3) << "diffing" << std::endl;
    134138//       packet::Gamestate* gs1  = gs;
    135       gs = gs->diff(client);
     139      packet::Gamestate *diffed = gs->diff(client);
     140      //packet::Gamestate *gs2 = diffed->undiff(gs);
     141//       assert(*gs == *gs2);
     142      gs = diffed;
    136143//       packet::Gamestate* gs2 = gs->undiff(client);
    137144//       gs = new packet::Gamestate(*gs);
Note: See TracChangeset for help on using the changeset viewer.