ref: enable multiplayer high defintion model in menu preview

This commit is contained in:
Alibek Omarov 2024-07-28 14:45:10 +03:00
parent d52d50e283
commit cac5852e68
2 changed files with 4 additions and 2 deletions

View file

@ -3389,7 +3389,8 @@ static int R_StudioDrawPlayer( int flags, entity_state_t *pplayer )
if( flags & STUDIO_RENDER ) if( flags & STUDIO_RENDER )
{ {
if( cl_himodels->value && RI.currentmodel != RI.currententity->model ) // change body if it's a menu entity
if( cl_himodels->value && ( RI.currentmodel != RI.currententity->model || !RI.drawWorld ))
{ {
// show highest resolution multiplayer model // show highest resolution multiplayer model
RI.currententity->curstate.body = 255; RI.currententity->curstate.body = 255;

View file

@ -3155,7 +3155,8 @@ static int R_StudioDrawPlayer( int flags, entity_state_t *pplayer )
if( flags & STUDIO_RENDER ) if( flags & STUDIO_RENDER )
{ {
if( cl_himodels->value && RI.currentmodel != RI.currententity->model ) // change body if it's a menu entity
if( cl_himodels->value && ( RI.currentmodel != RI.currententity->model || !RI.drawWorld ))
{ {
// show highest resolution multiplayer model // show highest resolution multiplayer model
RI.currententity->curstate.body = 255; RI.currententity->curstate.body = 255;