Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5991 in orxonox.OLD for branches/height_map


Ignore:
Timestamp:
Dec 8, 2005, 4:18:28 PM (19 years ago)
Author:
bottac
Message:

Yet another bug fixed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/height_map/src/lib/graphics/importer/height_map.cc

    r5990 r5991  
    6060void HeightMap::load()
    6161{
    62  unsigned int height = 0;
     62 int height = 0;
    6363 int offset = 0;
    6464 char *  bmp = (char*) heightMap->pixels;
     
    8181                                       
    8282                                       
    83                 this->addVertex( 20*(heightMap->h - i) , ((double)( 100-(double)offset)/5) - 50 ,20*j);
     83                this->addVertex( 20*(heightMap->h - i) , ((double)( (double)300-40*height)/100) - 300 ,20*j);
    8484             } 
    8585        }
Note: See TracChangeset for help on using the changeset viewer.