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

Method OnMineView

editor/MainFrm.cpp:2965–2978  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2963
2964void CMainFrame::OnTerrainView() { SetViewMode(VM_TERRAIN); }
2965
2966void 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
2981void CMainFrame::OnUpdateMineView(CCmdUI *pCmdUI) {

Callers

nothing calls this directly

Calls 2

OutrageMessageBoxFunction · 0.85
SetViewModeFunction · 0.85

Tested by

no test coverage detected