Turn off all camera views If total reset is true, set all views to none, otherwise kill object view but keep rear views.
| 1102 | // Turn off all camera views |
| 1103 | // If total reset is true, set all views to none, otherwise kill object view but keep rear views. |
| 1104 | void InitCameraViews(bool total_reset) { |
| 1105 | for (int i = 0; i < NUM_CAMERA_VIEWS; i++) { |
| 1106 | if (total_reset || (Camera_view_mode[i] != CV_REARVIEW)) { |
| 1107 | Camera_view_mode[i] = CV_NONE; |
| 1108 | } else { // is rear view, so keep it |
| 1109 | Camera_view_mode[i] = CV_REARVIEW; |
| 1110 | CreateSmallView(i, Player_object->handle, SVF_REARVIEW, 0.0, D3_DEFAULT_ZOOM, -1, TXT_VIEW_REAR); |
| 1111 | } |
| 1112 | } |
| 1113 | } |
| 1114 | |
| 1115 | void RestoreCameraRearviews() { |
| 1116 | if (Camera_view_mode[0] != CV_REARVIEW) { |
no test coverage detected