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

Method OnFileImportRoom

editor/MainFrm.cpp:2918–2938  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2916 OutrageMessageBox("Done reordering pages!");
2917}
2918
2919void CMainFrame::OnFileImportRoom() {
2920 // Filter out the curious
2921 char filename[200];
2922
2923 CString filter = "Outrage 3dsmax files (*.p3d)|*.p3d||";
2924
2925 if (!OpenFileDialog(this, (LPCSTR)filter, filename, Current_room_dir, sizeof(Current_room_dir)))
2926 return;
2927
2928 int n = Read3DSMaxFile(filename);
2929
2930 if (n >= 0) {
2931 D3EditState.current_room = n;
2932 State_changed = 1;
2933
2934 OutrageMessageBox("Room imported and saved locally.\n\nPress OK to check room validity.");
2935 VerifyRoom(&Rooms[n]);
2936 }
2937
2938 theApp.resume();
2939}
2940
2941void CMainFrame::OnObjectMovePlayer() { HObjectMoveToViewer(Player_object); }

Callers

nothing calls this directly

Calls 5

OpenFileDialogFunction · 0.85
Read3DSMaxFileFunction · 0.85
OutrageMessageBoxFunction · 0.85
VerifyRoomFunction · 0.85
resumeMethod · 0.45

Tested by

no test coverage detected