| 852 | } |
| 853 | |
| 854 | void 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 | |
| 871 | void compute_costs() { |
| 872 | int i, j; |