Returns a unique checksum for the current terrain geometry
| 294 | |
| 295 | // Returns a unique checksum for the current terrain geometry |
| 296 | int GetTerrainGeometryChecksum() { |
| 297 | int total = 0; |
| 298 | |
| 299 | for (int i = 0; i < TERRAIN_WIDTH * TERRAIN_DEPTH; i++) { |
| 300 | total += (Terrain_seg[i].ypos + i); |
| 301 | } |
| 302 | |
| 303 | return total; |
| 304 | } |
| 305 | |
| 306 | // Builds the min max quadtree data for terrain VSD |
| 307 | void BuildMinMaxTerrain() { |
no outgoing calls
no test coverage detected