| 818 | } |
| 819 | |
| 820 | void 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 | |
| 840 | void CEditorView::OnRoomPlaceRoom() { |
| 841 | if (D3EditState.current_room == -1) { |
nothing calls this directly
no test coverage detected