| 1662 | |
| 1663 | |
| 1664 | void cChunk::SetAreaBiome(int a_MinRelX, int a_MaxRelX, int a_MinRelZ, int a_MaxRelZ, EMCSBiome a_Biome) |
| 1665 | { |
| 1666 | for (int z = a_MinRelZ; z <= a_MaxRelZ; z++) |
| 1667 | { |
| 1668 | for (int x = a_MinRelX; x <= a_MaxRelX; x++) |
| 1669 | { |
| 1670 | cChunkDef::SetBiome(m_BiomeMap, x, z, a_Biome); |
| 1671 | } |
| 1672 | } |
| 1673 | MarkDirty(); |
| 1674 | |
| 1675 | // Re-send the chunk to all clients: |
| 1676 | for (cClientHandleList::iterator itr = m_LoadedByClient.begin(); itr != m_LoadedByClient.end(); ++itr) |
| 1677 | { |
| 1678 | m_World->ForceSendChunkTo(m_PosX, m_PosZ, (*itr)); |
| 1679 | } // for itr - m_LoadedByClient[] |
| 1680 | } |
| 1681 | |
| 1682 | |
| 1683 |
nothing calls this directly
no test coverage detected