| 161 | } |
| 162 | |
| 163 | void Full_Chunk::updateTopBlockLocation(const Block::Position& position) |
| 164 | { |
| 165 | int val = m_highestBlocks.at(position.x, position.z); |
| 166 | |
| 167 | m_highestBlocks.at(position.x, position.z) = std::max((int)val, position.y); |
| 168 | } |
| 169 | |
| 170 | |
| 171 | //Adds all of the chunks within the viewing frustum into the master renderer |