| 131 | |
| 132 | |
| 133 | inline void PushSomeColumns(int a_BlockX, int a_Height, int a_BlockZ, int a_ColumnHeight, int a_Seq, cNoise & a_Noise, int a_Chance, sSetBlockVector & a_Blocks, const sMetaCoords * a_Coords, size_t a_NumCoords, BLOCKTYPE a_BlockType) |
| 134 | { |
| 135 | for (size_t i = 0; i < a_NumCoords; i++) |
| 136 | { |
| 137 | int x = a_BlockX + a_Coords[i].x; |
| 138 | int z = a_BlockZ + a_Coords[i].z; |
| 139 | if (a_Noise.IntNoise3DInt(x + 64 * a_Seq, a_Height + i, z + 64 * a_Seq) <= a_Chance) |
| 140 | { |
| 141 | for (int j = 0; j < a_ColumnHeight; j++) |
| 142 | { |
| 143 | a_Blocks.push_back(sSetBlock(x, a_Height - j, z, a_BlockType, a_Coords[i].Meta)); |
| 144 | } |
| 145 | } |
| 146 | } // for i - a_Coords[] |
| 147 | } |
| 148 | |
| 149 | |
| 150 |
no test coverage detected