From cac5852e682b134df7938aede374a72aeca5f0c0 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sun, 28 Jul 2024 14:45:10 +0300 Subject: [PATCH] ref: enable multiplayer high defintion model in menu preview --- ref/gl/gl_studio.c | 3 ++- ref/soft/r_studio.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ref/gl/gl_studio.c b/ref/gl/gl_studio.c index c70ae875..a35bab55 100644 --- a/ref/gl/gl_studio.c +++ b/ref/gl/gl_studio.c @@ -3389,7 +3389,8 @@ static int R_StudioDrawPlayer( int flags, entity_state_t *pplayer ) 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 RI.currententity->curstate.body = 255; diff --git a/ref/soft/r_studio.c b/ref/soft/r_studio.c index c54c4b0c..c18955bc 100644 --- a/ref/soft/r_studio.c +++ b/ref/soft/r_studio.c @@ -3155,7 +3155,8 @@ static int R_StudioDrawPlayer( int flags, entity_state_t *pplayer ) 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 RI.currententity->curstate.body = 255;