| 214 | |
| 215 | |
| 216 | void cBiomeCache::SetSource(cBiomeSource * a_Source) |
| 217 | { |
| 218 | // TODO: Stop all threads, so that they don't use the source anymore! |
| 219 | |
| 220 | delete m_Source; |
| 221 | m_Source = a_Source; |
| 222 | |
| 223 | // Invalidate cache contents: |
| 224 | cCSLock Lock(m_CS); |
| 225 | m_BaseX = -10000; |
| 226 | m_BaseZ = -10000; |
| 227 | m_Pool.splice(m_Pool.end(), m_Queue); |
| 228 | } |
| 229 | |
| 230 | |
| 231 |