| 2916 | OutrageMessageBox("Done reordering pages!"); |
| 2917 | } |
| 2918 | |
| 2919 | void 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 | |
| 2941 | void CMainFrame::OnObjectMovePlayer() { HObjectMoveToViewer(Player_object); } |
nothing calls this directly
no test coverage detected