| 1369 | } |
| 1370 | |
| 1371 | void BOA_ComputePathPoints(char *message, int len) { |
| 1372 | int i; |
| 1373 | int j; |
| 1374 | |
| 1375 | for (i = 0; i <= Highest_room_index; i++) { |
| 1376 | if (Rooms[i].used) { |
| 1377 | for (j = 0; j < Rooms[i].num_portals; j++) { |
| 1378 | ComputePortalCenter(&Rooms[i].portals[j].path_pnt, &Rooms[i], j); |
| 1379 | } |
| 1380 | |
| 1381 | if (!(Rooms[i].flags & RF_MANUAL_PATH_PNT)) { |
| 1382 | Rooms[i].path_pnt = (Rooms[i].max_xyz + Rooms[i].min_xyz) / 2.0f; |
| 1383 | ValidateRoomPathPoint(i, message, len); |
| 1384 | } |
| 1385 | } |
| 1386 | } |
| 1387 | } |
| 1388 | |
| 1389 | // Given a face, computes the upper left corner of the face |
| 1390 | void ComputeBOAVisFaceUpperLeft(room *rp, face *fp, vector *upper_left, float *xdiff, float *ydiff, vector *center) { |
no test coverage detected