Skip to content

Commit

Permalink
Render weather only in portal and main views
Browse files Browse the repository at this point in the history
  • Loading branch information
SomaZ committed Jul 2, 2023
1 parent 9df2102 commit 5ff5390
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion codemp/rd-rend2/tr_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2026,7 +2026,7 @@ void R_GenerateDrawSurfs( viewParms_t *viewParms, trRefdef_t *refdef ) {

R_AddPolygonSurfaces(refdef);

if ( !(tr.viewParms.flags & VPF_DEPTHSHADOW) && tr.world)
if ( tr.viewParms.viewParmType > VPT_POINT_SHADOWS && tr.world )
{
R_AddWeatherSurfaces();
}
Expand Down
2 changes: 1 addition & 1 deletion codemp/rd-rend2/tr_weather.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ namespace
tr.weatherSystem->frozen)
{
// Already simulated for this frame
//return;
return;
}

// Intentionally switched. Previous frame's VBO would be in ws.vbo and
Expand Down

0 comments on commit 5ff5390

Please sign in to comment.