Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 24, 2005, 3:27:23 PM (20 years ago)
Author:
rennerc
Message:

terrain loads now

File:
1 edited

Legend:

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

    r6142 r6277  
    5858
    5959  this->toList(OM_NULL);
     60
     61  strncpy( modelFileName, "", 1024 );
    6062}
    6163
     
    101103void WorldEntity::loadModel(const char* fileName, float scaling, unsigned int modelNumber)
    102104{
    103   if (fileName != NULL)
    104   {
     105  if ( fileName != NULL && strcmp(fileName, "") )
     106  {
     107    strncpy( modelFileName, fileName, 1024 );
    105108    // search for the special character # in the LoadParam
    106109    if (strchr(fileName, '#') != NULL)
     
    129132  }
    130133  else
     134  {
     135    strncpy( modelFileName, "", 1024 );
    131136    this->setModel(NULL);
     137  }
    132138}
    133139
Note: See TracChangeset for help on using the changeset viewer.