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

Method OnRoomPlaceRoom

editor/editorView.cpp:840–853  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

838}
839
840void 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
855void CEditorView::OnRoomAttachRoom() {
856 ASSERT(Placed_room != -1);

Callers

nothing calls this directly

Calls 2

OutrageMessageBoxFunction · 0.85
PlaceRoomFunction · 0.85

Tested by

no test coverage detected