| 1052 | } |
| 1053 | |
| 1054 | void CEditorView::OnUpdateRoomSnapPlacedRoom(CCmdUI *pCmdUI) { |
| 1055 | pCmdUI->Enable(((Placed_room != -1) || (Placed_group != NULL)) && (Placed_baseroomp != NULL)); |
| 1056 | |
| 1057 | if (Placed_room != -1) { |
| 1058 | pCmdUI->SetText((Placed_door != -1) ? "Snap Placed Door" : "Snap Placed Room"); |
| 1059 | pCmdUI->Enable(1); |
| 1060 | } else if (Placed_group != NULL) { |
| 1061 | pCmdUI->SetText("Snap Placed Group"); |
| 1062 | pCmdUI->Enable(1); |
| 1063 | } else |
| 1064 | pCmdUI->Enable(0); |
| 1065 | } |
| 1066 | |
| 1067 | void CEditorView::OnRoomJoinAdjacentFaces() { |
| 1068 | if (Markedroomp == NULL) { |