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

Function clear_BOA

Descent3/BOA.cpp:854–869  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

852}
853
854void clear_BOA() {
855 int i, j;
856
857 for (i = 0; i <= Highest_room_index + MAX_BOA_TERRAIN_REGIONS; i++) {
858 for (j = 0; j <= Highest_room_index + MAX_BOA_TERRAIN_REGIONS; j++) {
859 BOA_Array[i][j] = i; // No flags are set and i to j points to i (so, no path exists)
860 }
861 }
862
863 for (i = 0; i < MAX_ROOMS; i++) {
864 BOA_AABB_ROOM_checksum[i] = 0;
865 }
866
867 BOA_num_mines = 0;
868 BOA_num_terrain_regions = 0;
869}
870
871void compute_costs() {
872 int i, j;

Callers 1

MakeBOAFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected