| 1222 | |
| 1223 | |
| 1224 | NIBBLETYPE cChunkMap::GetBlockBlockLight(int a_BlockX, int a_BlockY, int a_BlockZ) |
| 1225 | { |
| 1226 | int ChunkX, ChunkZ; |
| 1227 | cChunkDef::AbsoluteToRelative(a_BlockX, a_BlockY, a_BlockZ, ChunkX, ChunkZ ); |
| 1228 | |
| 1229 | cCSLock Lock(m_CSLayers); |
| 1230 | cChunkPtr Chunk = GetChunk( ChunkX, ZERO_CHUNK_Y, ChunkZ ); |
| 1231 | if ((Chunk != NULL) && Chunk->IsValid() ) |
| 1232 | { |
| 1233 | return Chunk->GetBlockLight(a_BlockX, a_BlockY, a_BlockZ); |
| 1234 | } |
| 1235 | return 0; |
| 1236 | } |
| 1237 | |
| 1238 | |
| 1239 |
nothing calls this directly
no test coverage detected