Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10165 in orxonox.OLD


Ignore:
Timestamp:
Jan 3, 2007, 3:19:45 PM (17 years ago)
Author:
patrick
Message:

some warnings fixed

Location:
branches/mount_points/src
Files:
4 edited

Legend:

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

    r10033 r10165  
    430430  char fileName [500];
    431431  char ext [500];
    432   struct stat results;
    433432
    434433
     
    660659  int      errorCode = 0;           //!< the error code for the texture loading functions
    661660  unsigned int   lightMap;          //!< the OpenGL texture handle
    662   int      mipmapLevel = 0;         //!< the maximum mipmap level for this texture
    663   int      mipmapWidth = 0;         //!< the width of the mipmap
    664   int      mipmapHight = 0;         //!< the height of the mipmap3
     661  //int      mipmapLevel = 0;         //!< the maximum mipmap level for this texture
     662  //int      mipmapWidth = 0;         //!< the width of the mipmap
     663  //int      mipmapHight = 0;         //!< the height of the mipmap3
    665664  float sc, scale, temp;
    666665  for(int i = 0; i < 128*128*3 ; i++)
     
    11011100  {
    11021101    int sto  =  array[0];
    1103     array[0] =  scale * array[1] ;
    1104     array[1] =  scale * array[2];
    1105     array[2] =  scale * sto ;
     1102    array[0] =  (int) scale * array[1] ;
     1103    array[1] =  (int) scale * array[2];
     1104    array[2] =  (int) scale * sto ;
    11061105  }
    11071106
  • branches/mount_points/src/lib/graphics/importer/static_model.cc

    r10147 r10165  
    116116
    117117      // now check if it is a mount point identifier
    118       if( this->data->getGroups().size() != 5) {
    119         PRINTF(1)("the face count of %s is wrong, perhaps you missnamed this object or used the wrong mount point object\n", groupName.c_str());
     118      if( (*groupIt)._faces.size() != 6) {        PRINTF(1)("the face count of %s is wrong, perhaps you missnamed this object or used the wrong mount point object (got %i faces)\n", groupName.c_str(), (*groupIt)._faces.size());
    120119      }
    121120
     
    135134      }
    136135
    137       // vertex with the max count is the up-point
     136      // vertex with the max surrounding faces is the up-point (pyramid like object)
    138137      std::vector<Vector>::const_iterator it = vertices.begin();
    139138      Vector tmpPoint;
     
    167166      center /= vertices.size();
    168167
     168      PRINTF(0)("Up Point\n");
     169      upPoint.debug();
     170
     171      PRINTF(0)("Center\n");
     172      center.debug();
    169173
    170174    }
  • branches/mount_points/src/lib/graphics/importer/static_model_data.h

    r10147 r10165  
    4141  ObjectListDeclaration(StaticModelData);
    4242
    43 private:
     43public:
    4444  ////////////////////
    4545  /// SUB-ELEMENTS ///
  • branches/mount_points/src/story_entities/movie_loader.cc

    r10114 r10165  
    6363
    6464
    65 ErrorMessage MovieLoader::init() {}
     65ErrorMessage MovieLoader::init() {  return ErrorMessage();}
    6666
    6767
    68 ErrorMessage MovieLoader::loadData() {}
     68ErrorMessage MovieLoader::loadData() {  return ErrorMessage();}
    6969
    7070
     
    7272{
    7373  this->unsubscribeEvents(ES_GAME);
     74
     75  return ErrorMessage();
    7476}
    7577
     
    8284  this->bRunning = true;
    8385  this->run();
     86
     87  return true;
    8488}
    8589
     
    8993
    9094  this->bRunning = false;
     95
     96  return true;
    9197}
    9298
    93 bool MovieLoader::pause() { }
    94 bool MovieLoader::resume() { }
     99bool MovieLoader::pause() { return false; }
     100bool MovieLoader::resume() { return false; }
    95101
    96102void MovieLoader::run()
Note: See TracChangeset for help on using the changeset viewer.