ref: soft: replace RI.{vieworg,viewangles,pvsorigin} by ref_viewpass_t fields

This commit is contained in:
Alibek Omarov
2026-04-13 13:38:20 +05:00
parent 68875267de
commit e9e46dd67a
10 changed files with 37 additions and 44 deletions
+3 -3
View File
@@ -288,14 +288,14 @@ void R_SetupFrameQ( void )
// build the transformation matrix for the given view angles
VectorCopy( RI.vieworg, tr.modelorg );
VectorCopy( RI.rvp.vieworigin, tr.modelorg );
// AngleVectors (RI.viewangles, RI.vforward, RI.vright, RI.vup);
// AngleVectors (RI.rvp.viewangles, RI.vforward, RI.vright, RI.vup);
// current viewleaf
if( RI.drawWorld )
{
RI.viewleaf = gEngfuncs.Mod_PointInLeaf( RI.vieworg, WORLDMODEL->nodes );
RI.viewleaf = gEngfuncs.Mod_PointInLeaf( RI.rvp.vieworigin, WORLDMODEL->nodes );
r_viewcluster = RI.viewleaf->cluster;
}