Skip to content

Commit cb8154a

Browse files
committed
Merge pull request #478 from Yarn366/mantis/3096
Fix for Mantis 3096
2 parents e36e9ff + a4f793e commit cb8154a

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

code/fred2/fredrender.cpp

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,7 @@ color colour_yellow;
140140

141141
void fred_enable_htl()
142142
{
143-
if (!Briefing_dialog) gr_set_proj_matrix( (4.0f/9.0f) * PI * FRED_DEFAULT_HTL_FOV, gr_screen.aspect*(float)gr_screen.clip_width/(float)gr_screen.clip_height, 1.0f, FRED_DEAFULT_HTL_DRAW_DIST);
144-
if (Briefing_dialog) gr_set_proj_matrix( Briefing_window_FOV, gr_screen.aspect*(float)gr_screen.clip_width/(float)gr_screen.clip_height, 1.0f, FRED_DEAFULT_HTL_DRAW_DIST);
143+
gr_set_proj_matrix((4.0f/9.0f) * PI * (Briefing_dialog ? Briefing_window_FOV : FRED_DEFAULT_HTL_FOV), gr_screen.aspect*(float)gr_screen.clip_width/(float)gr_screen.clip_height, 1.0f, FRED_DEAFULT_HTL_DRAW_DIST);
145144
gr_set_view_matrix(&Eye_position, &Eye_matrix);
146145
}
147146

@@ -1504,11 +1503,7 @@ void render_frame()
15041503
gr_set_font(FONT1);
15051504
light_reset();
15061505

1507-
if (Briefing_dialog) {
1508-
g3_set_view_matrix(&eye_pos, &eye_orient, Briefing_window_FOV);
1509-
} else {
1510-
g3_set_view_matrix(&eye_pos, &eye_orient, 0.5f);
1511-
}
1506+
g3_set_view_matrix(&eye_pos, &eye_orient, (Briefing_dialog ? Briefing_window_FOV : FRED_DEFAULT_HTL_FOV));
15121507
Viewer_pos = eye_pos; // for starfield code
15131508

15141509
fred_enable_htl();
@@ -1613,11 +1608,7 @@ void render_frame()
16131608
gr_set_clip(0, 0, True_rw, True_rh);
16141609

16151610
g3_start_frame(0); // ** Accounted for
1616-
if (Briefing_dialog) {
1617-
g3_set_view_matrix(&eye_pos, &eye_orient, Briefing_window_FOV);
1618-
} else {
1619-
g3_set_view_matrix(&eye_pos, &eye_orient, 0.5f);
1620-
}
1611+
g3_set_view_matrix(&eye_pos, &eye_orient, (Briefing_dialog ? Briefing_window_FOV : FRED_DEFAULT_HTL_FOV));
16211612
}
16221613

16231614
void game_do_frame()

0 commit comments

Comments
 (0)