MCPcopy Create free account
hub / github.com/cuberite/cuberite / InitWorkRnds

Method InitWorkRnds

src/Noise.cpp:186–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184
185
186void cCubicCell2D::InitWorkRnds(int a_FloorX, int a_FloorY)
187{
188 m_CurFloorX = a_FloorX;
189 m_CurFloorY = a_FloorY;
190 for (int x = 0; x < 4; x++)
191 {
192 int cx = a_FloorX + x - 1;
193 for (int y = 0; y < 4; y++)
194 {
195 int cy = a_FloorY + y - 1;
196 (*m_WorkRnds)[x][y] = (NOISE_DATATYPE)m_Noise.IntNoise2D(cx, cy);
197 }
198 }
199}
200
201
202

Callers 2

Generate2DMethod · 0.80
Generate3DMethod · 0.80

Calls 2

IntNoise2DMethod · 0.80
IntNoise3DMethod · 0.80

Tested by

no test coverage detected