Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 16, 2008, 1:32:07 PM (16 years ago)
Author:
scheusso
Message:

hackfixed problem with client reconnects (originally triggered by object-zombies)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation/src/network/synchronisable/Synchronisable.cc

    r2464 r2482  
    119119    if (it != objectMap_.end())
    120120      objectMap_.erase(it);
     121   
     122    //HACK HACK HACK HACK HACK HACK
     123    // this hack ensures that childs of this object also get destroyed
     124//     ObjectList<Synchronisable>::iterator it2, it3;
     125//     // get total size of gamestate
     126//     for(it2 = ObjectList<Synchronisable>::begin(); it2; ++it2)
     127//     {
     128//       if ( it2->getCreatorID() == this->objectID && it2->getCreatorID() != OBJECTID_UNKNOWN )
     129//       {
     130//         Synchronisable::deleteObject( it2->getObjectID() );
     131//       }
     132//     }
     133    //HACK HACK HACK HACK HACK HACK
    121134  }
    122135
     
    161174      {
    162175        mem += header->size; //.TODO: this suckz.... remove size from header
    163         assert(0);
     176//         assert(0); // TODO: uncomment this if we have a clean objecthierarchy (with destruction of children of objects) ^^
    164177        return 0;
    165178      }
Note: See TracChangeset for help on using the changeset viewer.