Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 26, 2008, 9:21:53 PM (16 years ago)
Author:
scheusso
Message:

another one bites the dust: solved that problem with zeros in the gamestate

File:
1 edited

Legend:

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

    r1425 r1431  
    117117  int GameStateClient::processGameState(){
    118118    if(tempGameState_==NULL)
    119       return GAMESTATEID_INITIAL;
     119      return 0;
    120120    int id=tempGameState_->id;
    121121    bool b = saveShipCache();
     
    176176          orxonox::Identifier* id = ID((unsigned int)sync.classID);
    177177          if(!id){
    178             COUT(4) << "We could not identify a new object; classid: " << sync.classID << std::endl;
    179             return false;
     178            COUT(3) << "We could not identify a new object; classid: " << sync.classID << " objectID: " << sync.objectID << " size: " << sync.length << std::endl;
     179            return false; // most probably the gamestate is corrupted
    180180          }
    181181          Synchronisable *no = dynamic_cast<Synchronisable *>(id->fabricate());
     
    278278    int of=0; // pointers offset
    279279    int dest_length=0;
    280     if(old->size>=diff->size)
     280    /*if(old->size>=diff->size)
    281281      dest_length=old->size;
    282     else
     282    else*/
    283283      dest_length=diff->size;
    284284//     unsigned char *dp = (unsigned char *)malloc(dest_length*sizeof(unsigned char));
     
    295295          of++;
    296296        }
    297       } else{
     297      } /*else{
    298298        while(of<dest_length){
    299299          *(dp+of)=*(ap+of)^n;
    300300          of++;
    301301        }
    302       }
     302      }*/
    303303    }
    304304    // should be finished now
Note: See TracChangeset for help on using the changeset viewer.