Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 12, 2007, 11:28:38 PM (16 years ago)
Author:
scheusso
Message:

gamestateclient completet

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/src/network/GameStateClient.cc

    r436 r505  
    5959        removeObject(it);
    6060      }
    61       if(it==0){  // add the new object
    62         // =================== factory command to add object
    63         // can we be sure the object really was added?
     61      if(it==0){
     62        orxonox::BaseObject *no = ID(sync.classID)->fabricate();
     63        ((Synchronisable *)no)->objectID=sync.objectID;
     64        ((Synchronisable *)no)->classID=sync.classID;
    6465        it=orxonox::ObjectList<Synchronisable>::end();
    65         it->objectID=sync.objectID;
    66         it->classID=sync.classID;
    6766      }
    6867    } else {
     
    7271            << sync.objectID << "; classID: " << sync.classID << std::endl;
    7372    }
    74    
     73    ++it;
    7574  }
    7675 
Note: See TracChangeset for help on using the changeset viewer.