Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 12, 2008, 12:15:30 PM (16 years ago)
Author:
scheusso
Message:

Lots of changes:
Some fixes/hacks in objects
Changes in Gamestates and bugfixes
Removed some asserts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/network/src/network/packet/Gamestate.h

    r1827 r1901  
    4444struct GamestateHeader{
    4545  ENUM::Type packetType;
    46   int id; // id of the gamestate
    47   unsigned int compsize;
    48   unsigned int datasize;
    49   int base_id; // id of the base-gamestate diffed from
    50   bool diffed; // wheter diffed or not
    51   bool complete; // wheter it is a complete gamestate or only partial
    52   bool compressed;
     46  int32_t id; // id of the gamestate
     47  uint32_t compsize;
     48  uint32_t datasize;
     49  int32_t base_id; // id of the base-gamestate diffed from
     50  bool diffed:1; // wheter diffed or not
     51  bool complete:1; // wheter it is a complete gamestate or only partial
     52  bool compressed:1;
    5353#ifndef NDEBUG
    5454  uint32_t crc32;
     
    6262  public:
    6363    Gamestate();
    64     Gamestate(unsigned char *data, int clientID);
    65     Gamestate(unsigned char *data);
     64    Gamestate(uint8_t *data, unsigned int clientID);
     65    Gamestate(uint8_t *data);
    6666
    6767    ~Gamestate();
Note: See TracChangeset for help on using the changeset viewer.