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

Function IsRoomSelected

editor/selectedroom.cpp:81–89  ·  view source on GitHub ↗

Returns true if a room is in the selected list

Source from the content-addressed store, hash-verified

79
80// Returns true if a room is in the selected list
81int IsRoomSelected(int roomnum) {
82 int i;
83
84 for (i = 0; i < N_selected_rooms; i++)
85 if (Selected_rooms[i] == roomnum)
86 return 1;
87
88 return 0;
89}
90
91// Adds a room to the selected list, if it's not already there
92void AddRoomToSelectedList(int roomnum) {

Callers 6

CopyGroupFunction · 0.85
DrawWorldFunction · 0.85
CopySelectedRoomsFunction · 0.85
RotateRoomsFunction · 0.85
AddRoomToSelectedListFunction · 0.85
SelectConnectedRoomsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected