| 1041 | } |
| 1042 | |
| 1043 | void 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 | |
| 1054 | void CEditorView::OnUpdateRoomSnapPlacedRoom(CCmdUI *pCmdUI) { |
| 1055 | pCmdUI->Enable(((Placed_room != -1) || (Placed_group != NULL)) && (Placed_baseroomp != NULL)); |
nothing calls this directly
no test coverage detected