Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 15, 2008, 2:55:13 PM (17 years ago)
Author:
scheusso
Message:

spaceship fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/merge/src/network/Client.cc

    r1264 r1284  
    234234      if(gs){
    235235        COUT(4) << "client tick: sending gs " << gs << std::endl;
    236         if(client_connection.addPacket(pck_gen.gstate(gs)))
     236        ENetPacket *packet = pck_gen.gstate(gs);
     237        if( packet == NULL || !client_connection.addPacket(packet))
    237238          COUT(3) << "Problem adding partial gamestate to queue" << std::endl;
    238239        // now delete it to save memory
Note: See TracChangeset for help on using the changeset viewer.