Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 26, 2006, 8:03:40 PM (19 years ago)
Author:
rennerc
Message:

sync: added debug feature

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/world_entities/environments/water.cc

    r6771 r6784  
    298298  SYNCHELP_READ_BEGIN();
    299299
    300   SYNCHELP_READ_FKT( Water::writeState );
     300  SYNCHELP_READ_FKT( Water::writeState, NWT_WAT_STATE );
    301301
    302302  return SYNCHELP_READ_N;
     
    324324  {
    325325    *reciever = rec;
    326     SYNCHELP_WRITE_FKT( Water::readState );
     326    SYNCHELP_WRITE_FKT( Water::readState, NWT_WAT_STATE );
    327327  }
    328328
     
    343343  SYNCHELP_WRITE_BEGIN();
    344344
    345   SYNCHELP_WRITE_FKT( WorldEntity::readState );
     345  SYNCHELP_WRITE_FKT( WorldEntity::readState, NWT_WAT_WE_STATE );
    346346
    347347  // sync the size
    348   SYNCHELP_WRITE_FLOAT( this->sizeX );
    349   SYNCHELP_WRITE_FLOAT( this->sizeY );
     348  SYNCHELP_WRITE_FLOAT( this->sizeX, NWT_WAT_SIZEX );
     349  SYNCHELP_WRITE_FLOAT( this->sizeY, NWT_WAT_SIZEY );
    350350
    351351  //sync resolution
    352   SYNCHELP_WRITE_INT( this->resX );
    353   SYNCHELP_WRITE_INT( this->resY );
     352  SYNCHELP_WRITE_INT( this->resX, NWT_WAT_RESX );
     353  SYNCHELP_WRITE_INT( this->resY, NWT_WAT_RESY );
    354354
    355355  //sync the height
    356   SYNCHELP_WRITE_FLOAT( this->height );
     356  SYNCHELP_WRITE_FLOAT( this->height, NWT_WAT_HEIGHT );
    357357
    358358  return SYNCHELP_WRITE_N;
     
    370370  SYNCHELP_READ_BEGIN();
    371371
    372   SYNCHELP_READ_FKT( WorldEntity::writeState );
     372  SYNCHELP_READ_FKT( WorldEntity::writeState, NWT_WAT_WE_STATE );
    373373
    374374  float f1, f2;
     
    376376
    377377  //read the size
    378   SYNCHELP_READ_FLOAT( f1 );
    379   SYNCHELP_READ_FLOAT( f2 );
     378  SYNCHELP_READ_FLOAT( f1, NWT_WAT_SIZEX );
     379  SYNCHELP_READ_FLOAT( f2, NWT_WAT_SIZEY );
    380380  this->sizeX = f1;
    381381  this->sizeY = f2;
     
    383383
    384384  //read the resolution
    385   SYNCHELP_READ_INT( i1 );
    386   SYNCHELP_READ_INT( i2 );
     385  SYNCHELP_READ_INT( i1, NWT_WAT_RESX );
     386  SYNCHELP_READ_INT( i2, NWT_WAT_RESY );
    387387  this->resX = i1;
    388388  this->resY = i2;
     
    390390
    391391  //read the height
    392   SYNCHELP_READ_FLOAT( f1 );
     392  SYNCHELP_READ_FLOAT( f1, NWT_WAT_HEIGHT );
    393393  this->height = f1;
    394394
Note: See TracChangeset for help on using the changeset viewer.