| 190 | |
| 191 | |
| 192 | cChunkPtr cChunkMap::GetChunkNoLoad( int a_ChunkX, int a_ChunkY, int a_ChunkZ ) |
| 193 | { |
| 194 | // No need to lock m_CSLayers, since it's already locked by the operation that called us |
| 195 | cChunkLayer * Layer = GetLayerForChunk( a_ChunkX, a_ChunkZ ); |
| 196 | if (Layer == NULL) |
| 197 | { |
| 198 | // An error must have occurred, since layers are automatically created if they don't exist |
| 199 | return NULL; |
| 200 | } |
| 201 | |
| 202 | return Layer->GetChunk(a_ChunkX, a_ChunkY, a_ChunkZ); |
| 203 | } |
| 204 | |
| 205 | |
| 206 |
no test coverage detected