| 2963 | |
| 2964 | void CMainFrame::OnTerrainView() { SetViewMode(VM_TERRAIN); } |
| 2965 | |
| 2966 | void CMainFrame::OnMineView() { |
| 2967 | // Make sure there's a room to switch to |
| 2968 | int roomnum; |
| 2969 | for (roomnum = 0; roomnum <= Highest_room_index; roomnum++) |
| 2970 | if (Rooms[roomnum].used && !(Rooms[roomnum].flags & RF_EXTERNAL)) |
| 2971 | break; |
| 2972 | |
| 2973 | if (roomnum > Highest_room_index) { |
| 2974 | OutrageMessageBox("Cannot switch to Mine View: there are no internal rooms."); |
| 2975 | return; |
| 2976 | } |
| 2977 | |
| 2978 | SetViewMode(VM_MINE); |
| 2979 | } |
| 2980 | |
| 2981 | void CMainFrame::OnUpdateMineView(CCmdUI *pCmdUI) { |
nothing calls this directly
no test coverage detected