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

Function TCAMBuildRoomList

Descent3/TelComAutoMap.cpp:397–413  ·  view source on GitHub ↗

Builds a list of rooms to draw for the automap

Source from the content-addressed store, hash-verified

395
396// Builds a list of rooms to draw for the automap
397void TCAMBuildRoomList(int startroom) {
398 memset(AM_rooms_seen, 0, MAX_ROOMS);
399 Num_AM_rooms = 0;
400
401 if (startroom > 0) {
402 AM_room_list[Num_AM_rooms++] = startroom;
403 AM_rooms_seen[startroom] = 1;
404 }
405
406 int i = 0;
407 for (i = 0; i <= Highest_room_index; i++) {
408 if (Rooms[i].used && !AM_rooms_seen[i] && (AutomapVisMap[i] == 1 || (Rooms[i].flags & RF_EXTERNAL))) {
409 AM_room_list[Num_AM_rooms++] = i;
410 AM_rooms_seen[i] = 1;
411 }
412 }
413}
414
415// Takes a min,max vector and makes a surrounding cube from it
416void MakePointsFromMinMax(vector *corners, vector *minp, vector *maxp);

Callers 1

TCAMCallbackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected