| 1904 | #endif |
| 1905 | |
| 1906 | void verify_connections() { |
| 1907 | int i; |
| 1908 | int j; |
| 1909 | |
| 1910 | for (i = 0; i <= Highest_room_index + BOA_num_terrain_regions; i++) { |
| 1911 | if (i <= Highest_room_index && (!Rooms[i].used)) |
| 1912 | continue; |
| 1913 | |
| 1914 | if (i <= Highest_room_index && (Rooms[i].flags & RF_EXTERNAL)) |
| 1915 | continue; |
| 1916 | |
| 1917 | for (j = 0; j <= Highest_room_index + BOA_num_terrain_regions; j++) { |
| 1918 | if (j <= Highest_room_index && (!Rooms[j].used)) |
| 1919 | continue; |
| 1920 | |
| 1921 | if (j <= Highest_room_index && (Rooms[j].flags & RF_EXTERNAL)) |
| 1922 | continue; |
| 1923 | |
| 1924 | if (i == Highest_room_index + 1 && j > Highest_room_index) { |
| 1925 | continue; |
| 1926 | } |
| 1927 | |
| 1928 | if (j == Highest_room_index + 1 && i > Highest_room_index) { |
| 1929 | continue; |
| 1930 | } |
| 1931 | |
| 1932 | if (i == j) |
| 1933 | continue; |
| 1934 | |
| 1935 | int next_room = BOA_NEXT_ROOM(i, j); |
| 1936 | |
| 1937 | if (next_room != i && next_room != BOA_NO_PATH) { |
| 1938 | int portal; |
| 1939 | portal = BOA_DetermineStartRoomPortal(i, NULL, next_room, NULL); |
| 1940 | portal = BOA_DetermineStartRoomPortal(next_room, NULL, i, NULL); |
| 1941 | } |
| 1942 | } |
| 1943 | } |
| 1944 | } |
| 1945 | |
| 1946 | void find_small_portals() { |
| 1947 | int i, j; |
no test coverage detected