MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / GetTerrainGeometryChecksum

Function GetTerrainGeometryChecksum

Descent3/terrain.cpp:296–304  ·  view source on GitHub ↗

Returns a unique checksum for the current terrain geometry

Source from the content-addressed store, hash-verified

294
295// Returns a unique checksum for the current terrain geometry
296int 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
307void BuildMinMaxTerrain() {

Callers 2

LoadMissionLevelFunction · 0.85
BuildMinMaxTerrainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected