Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 11, 2006, 12:20:56 PM (20 years ago)
Author:
rennerc
Message:

space_ship: tried to implement control synchronization
entities will not be spawned at (0,0,0) anymore

File:
1 edited

Legend:

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

    r6424 r6469  
    402402
    403403  SYNCHELP_READ_STRINGM( modelFileName );
     404
    404405  if ( strcmp(modelFileName, "") )
    405     this->md2TextureFileName = modelFileName;
     406    if ( strstr(modelFileName, ResourceManager::getInstance()->getDataDir()) )
     407    {
     408      this->md2TextureFileName = new char[strlen(modelFileName)-strlen(ResourceManager::getInstance()->getDataDir())+1];
     409      strcpy((char*)this->md2TextureFileName, modelFileName+strlen(ResourceManager::getInstance()->getDataDir()));
     410    }
     411    else
     412    {
     413      this->md2TextureFileName = modelFileName;
     414    }
    406415
    407416  return SYNCHELP_READ_N;
Note: See TracChangeset for help on using the changeset viewer.