Changeset 8747 in orxonox.OLD for branches/terrain
- Timestamp:
- Jun 23, 2006, 4:45:04 PM (19 years ago)
- Location:
- branches/terrain
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/terrain/acinclude.m4
r8715 r8747 303 303 if test -e ${_lua_lib_directory}/liblua.a || test -e ${_lua_lib_directory}/liblua.dylib ; then 304 304 LUA_LIB_DIRECTORY=${_lua_lib_directory} 305 LDFLAGS="${LDFLAGS} -L${LUA_LIB_DIRECTORY} -llua "305 LDFLAGS="${LDFLAGS} -L${LUA_LIB_DIRECTORY} -llualib" 306 306 break 307 307 fi -
branches/terrain/src/lib/graphics/importer/terrain/terrain.h
r8745 r8747 206 206 inline float Terrain::getAltitude( int _x, int _z ) const 207 207 { 208 if ( _x < 0 || _x > heightfield.width || _z < 0 || _z > heightfield.height ) 209 return 0.0f; 208 210 return heightfield.data[heightfield.pitch*_z+_x]/255.0f; 209 211 }
Note: See TracChangeset
for help on using the changeset viewer.