| 838 | } |
| 839 | |
| 840 | void CEditorView::OnRoomPlaceRoom() { |
| 841 | if (D3EditState.current_room == -1) { |
| 842 | OutrageMessageBox("You must have a current room for this operation"); |
| 843 | return; |
| 844 | } |
| 845 | |
| 846 | if (Curroomp->faces[Curface].portal_num != -1) { |
| 847 | OutrageMessageBox("There's already a connection at the current room:face."); |
| 848 | return; |
| 849 | } |
| 850 | |
| 851 | PlaceRoom(Curroomp, Curface, D3EditState.current_room, Current_faces[D3EditState.current_room - FIRST_PALETTE_ROOM], |
| 852 | -1); |
| 853 | } |
| 854 | |
| 855 | void CEditorView::OnRoomAttachRoom() { |
| 856 | ASSERT(Placed_room != -1); |
nothing calls this directly
no test coverage detected