We are the wooooorld, we are the childreeen

This commit is contained in:
MarcEricMartel
2023-10-29 15:07:01 -04:00
parent 4f64be7e0a
commit b50a2f44e2
2 changed files with 3 additions and 2 deletions

View File

@@ -9,7 +9,7 @@ Array2d<Chunk*>& World::GetChunks() { return m_chunks; }
void World::BuildWorld() {
for (int x = 0; x < WORLD_SIZE_X; ++x)
for (int y = 0; y < WORLD_SIZE_Y; ++y)
m_chunks.Set(x - m_center[0], y - m_center[1], new Chunk(x + m_center[0], y + m_center[1], m_seed));
m_chunks.Set(x, y, new Chunk(x + m_center[0], y + m_center[1], m_seed));
}
void World::SetSeed(uint64_t seed) {