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

Method OnRoomSelectByNumber

editor/editorView.cpp:820–838  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

818}
819
820void CEditorView::OnRoomSelectByNumber() {
821 int n;
822
823 if (InputNumber(&n, "Select Room", "Enter room number to select", this)) {
824
825 if ((n > Highest_room_index) || !Rooms[n].used) {
826 OutrageMessageBox("Invalid room number.");
827 return;
828 }
829
830 Curroomp = &Rooms[n];
831 Curface = Curedge = Curvert = 0;
832 Curportal = -1;
833
834 EditorStatus("Room %d selected.", n);
835
836 State_changed = 1;
837 }
838}
839
840void CEditorView::OnRoomPlaceRoom() {
841 if (D3EditState.current_room == -1) {

Callers

nothing calls this directly

Calls 3

InputNumberFunction · 0.85
OutrageMessageBoxFunction · 0.85
EditorStatusFunction · 0.85

Tested by

no test coverage detected