medfall

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 9178ce1d00f9506a83027f5517bb19f995321400
parent 10e300169228871ae9c18a491a7fc46f38fe9109
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Wed Oct 12 23:32:34 +0300

Small cleanup

Diffstat:
terrain_manager.cc | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/terrain_manager.cc b/terrain_manager.cc @@ -122,9 +122,10 @@ static WORK_QUEUE_CALLBACK( async_load_tile ) { const CompressedTile & compressed_tile = tm->compressed_tiles[ tx ][ ty ]; u32 width, height; - size_t decompressed_heightmap_size = ( TILE_SIZE + 1 ) * ( TILE_SIZE + 1 ); - size_t decompressed_normalmap_size = decompressed_heightmap_size * sizeof( v3 ); - size_t decompressed_horizonmap_size = decompressed_heightmap_size * sizeof( float ); + size_t num_points = ( TILE_SIZE + 1 ) * ( TILE_SIZE + 1 ); + size_t decompressed_heightmap_size = num_points * sizeof( u8 ); + size_t decompressed_normalmap_size = num_points * sizeof( v3 ); + size_t decompressed_horizonmap_size = num_points * sizeof( float ); // TODO: width/height might not be TILE_SIZE on the edges of the map width = height = TILE_SIZE + 1;