Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 19, 2008, 12:09:01 AM (16 years ago)
Author:
scheusso
Message:

Some fixes in gamestate generation and handling (especially when no
objects are present)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchy/src/network/Server.cc

    r1942 r1944  
    239239      if(gs==NULL){
    240240        COUT(2) << "Server: could not generate gamestate (NULL from compress)" << std::endl;
     241        temp = temp->next();
    241242        continue;
    242243      }
     
    324325    g->setClientID(temp->getID());
    325326    b = g->collectData(0);
    326     assert(b);
     327    if(!b)
     328      return false; //no data for the client
    327329    b = g->compressData();
    328330    assert(b);
Note: See TracChangeset for help on using the changeset viewer.