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

Function BOA_ComputePathPoints

Descent3/BOA.cpp:1371–1387  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1369}
1370
1371void 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
1390void ComputeBOAVisFaceUpperLeft(room *rp, face *fp, vector *upper_left, float *xdiff, float *ydiff, vector *center) {

Callers 2

OnBadCenterpointsMethod · 0.85
MakeBOAFunction · 0.85

Calls 2

ComputePortalCenterFunction · 0.85
ValidateRoomPathPointFunction · 0.85

Tested by

no test coverage detected