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

Function AddRoomToSelectedList

editor/selectedroom.cpp:92–97  ·  view source on GitHub ↗

Adds a room to the selected list, if it's not already there

Source from the content-addressed store, hash-verified

90
91// Adds a room to the selected list, if it's not already there
92void AddRoomToSelectedList(int roomnum) {
93 if (!IsRoomSelected(roomnum)) {
94 Selected_rooms[N_selected_rooms++] = roomnum;
95 State_changed = 1;
96 }
97}
98
99// Removes a room from the selected list, if it's there
100void RemoveRoomFromSelectedList(int roomnum) {

Callers 2

CheckRoomFunction · 0.85
OnEditAddSelectMethod · 0.85

Calls 1

IsRoomSelectedFunction · 0.85

Tested by

no test coverage detected