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

Function RestoreCameraRearviews

Descent3/GameLoop.cpp:1115–1128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1113}
1114
1115void RestoreCameraRearviews() {
1116 if (Camera_view_mode[0] != CV_REARVIEW) {
1117 if (Current_pilot.lrearview_enabled) {
1118 Camera_view_mode[0] = CV_REARVIEW;
1119 CreateSmallView(0, Player_object->handle, SVF_REARVIEW, 0.0, D3_DEFAULT_ZOOM, -1, TXT_VIEW_REAR);
1120 }
1121 }
1122 if (Camera_view_mode[2] != CV_REARVIEW) {
1123 if (Current_pilot.rrearview_enabled) {
1124 Camera_view_mode[2] = CV_REARVIEW;
1125 CreateSmallView(2, Player_object->handle, SVF_REARVIEW, 0.0, D3_DEFAULT_ZOOM, -1, TXT_VIEW_REAR);
1126 }
1127 }
1128}
1129
1130void ProcessButtons() {
1131 // If dead, any key not handled above will eand the death sequence

Callers 2

StartLevelFunction · 0.85
DemoReadHeaderFunction · 0.85

Calls 1

CreateSmallViewFunction · 0.85

Tested by

no test coverage detected