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

Method OnRoomSnapPlacedRoom

editor/editorView.cpp:1043–1052  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1041}
1042
1043void CEditorView::OnRoomSnapPlacedRoom() {
1044 ASSERT((Placed_room != -1) || (Placed_group != NULL));
1045
1046 if ((Curroomp != Placed_baseroomp) || (Curface != Placed_baseface)) {
1047 OutrageMessageBox("The current room & face must be the same as the base room & face for this operation.");
1048 return;
1049 }
1050
1051 SnapRoom(Curvert);
1052}
1053
1054void CEditorView::OnUpdateRoomSnapPlacedRoom(CCmdUI *pCmdUI) {
1055 pCmdUI->Enable(((Placed_room != -1) || (Placed_group != NULL)) && (Placed_baseroomp != NULL));

Callers

nothing calls this directly

Calls 2

OutrageMessageBoxFunction · 0.85
SnapRoomFunction · 0.85

Tested by

no test coverage detected