MCPcopy Create free account
hub / github.com/Panzerschrek/Chasm-Reverse / LoadAmbientSoundsMap

Method LoadAmbientSoundsMap

PanzerChasm/map_loader.cpp:407–415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

405}
406
407void MapLoader::LoadAmbientSoundsMap( const Vfs::FileContent& map_file, MapData& map_data )
408{
409 const unsigned int c_offset= 0x23001u + MapData::c_map_size * MapData::c_map_size * 3u;
410
411 const unsigned char* in_data= map_file.data() + c_offset;
412 for( unsigned int x= 0u; x < MapData::c_map_size; x++ )
413 for( unsigned int y= 0u; y < MapData::c_map_size; y++ )
414 map_data.ambient_sounds_map[ x + y * MapData::c_map_size ]= in_data[ x * MapData::c_map_size + y ];
415}
416
417void MapLoader::LoadMonstersAndLights( const Vfs::FileContent& map_file, MapData& map_data )
418{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected