Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6326 in orxonox.OLD for branches/network/src/world_entities


Ignore:
Timestamp:
Dec 28, 2005, 2:13:57 AM (19 years ago)
Author:
rennerc
Message:
 
Location:
branches/network/src/world_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/world_entities/skybox.cc

    r6277 r6326  
    218218  setIsOutOfSync( false );
    219219
    220   /*int flsize = Converter::byteArrayToFloat( data, &size );
    221   Converter::byteArrayToString( data+flsize, textureName, length-flsize );*/
    222 
    223220  SYNCHELP_READ_BEGIN();
    224   SYNCHELP_READ_FLOAT(size);
     221  SYNCHELP_READ_FLOAT( size );
    225222  SYNCHELP_READ_STRING( textureName, 1024 );
    226223
    227   //PRINT(0)("GOT DATA: size=%f texture=%s\n", size, textureName);
     224  PRINT(0)("GOT DATA: size=%f texture='%s'\n", size, textureName);
    228225
    229226  this->setSize( size );
    230   this->setTexture( textureName );
     227  this->setTextureAndType( textureName, "jpg" );
    231228  this->rebuild();
    232229}
     
    245242  if ( rec > 0 )
    246243  {
     244    PRINT(0)("SEND DATA: size=%f texture='%s'\n", size, textureName);
    247245    *reciever = rec;
    248246
  • branches/network/src/world_entities/world_entity.cc

    r6294 r6326  
    349349    loadModel( modelFileName );
    350350  }
    351   delete[] modelFileName;
     351  //delete []modelFileName;
    352352}
    353353
Note: See TracChangeset for help on using the changeset viewer.