Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10321 in orxonox.OLD for trunk/src/lib


Ignore:
Timestamp:
Jan 24, 2007, 10:28:18 AM (18 years ago)
Author:
patrick
Message:

silvans complete patch

Location:
trunk/src/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/importer/bsp/bsp_file.cc

    r10317 r10321  
    10461046  Face->meshvert = patchOffset -sz;  //3*(patchOffset-sz)*level1*level1;
    10471047  Face->n_meshverts = sz;
    1048   PRINTF(0)("BSP FILE: sz: %i. \n", sz);
    1049   PRINTF(0)("BSP FILE: Face->meshvert %i . \n", Face->meshvert);
     1048  PRINTF(4)("BSP FILE: sz: %i. \n", sz);
     1049  PRINTF(4)("BSP FILE: Face->meshvert %i . \n", Face->meshvert);
    10501050
    10511051  //Face->n_meshverts = sz;
  • trunk/src/lib/script_engine/script.cc

    r10319 r10321  
    9494 {
    9595   std::string filedest(Resources::ResourceManager::getInstance()->mainGlobalPath().name());
    96    filedest += "/scripts/" + filename;
     96
     97   std::string directory = "";
     98   std::string file = filename;
     99
     100   unsigned int seperation =  filename.find_last_of('/');
     101   if (seperation != std::string::npos)
     102   {
     103    directory = filename.substr( 0, seperation+1 );
     104    file = filename.substr( seperation+1 );
     105   }
     106   filedest += "scripts/" + directory + file;
    97107
    98108   this->addThisScript();
Note: See TracChangeset for help on using the changeset viewer.