Returns true if a room is in the selected list
| 79 | |
| 80 | // Returns true if a room is in the selected list |
| 81 | int 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 |
| 92 | void AddRoomToSelectedList(int roomnum) { |
no outgoing calls
no test coverage detected