From 154bc0bdc1c0070295995583d93515d843bcb318 Mon Sep 17 00:00:00 2001 From: Night Owl Date: Tue, 24 Jul 2018 21:40:45 +0500 Subject: [PATCH] Fix sprites on low resolution in ThreeWave CTF. --- cl_dll/hud.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cl_dll/hud.cpp b/cl_dll/hud.cpp index c1d371cf..11cee84f 100644 --- a/cl_dll/hud.cpp +++ b/cl_dll/hud.cpp @@ -256,7 +256,7 @@ void CHud::VidInit( void ) client_sprite_t *p = m_pSpriteList; for( j = 0; j < m_iSpriteCountAllRes; j++ ) { - if( p->iRes == m_iRes ) + if( p->iRes == m_iRes || !strncmp( p->szSprite, "640_", 4 ) ) m_iSpriteCount++; p++; } @@ -270,7 +270,7 @@ void CHud::VidInit( void ) int index = 0; for( j = 0; j < m_iSpriteCountAllRes; j++ ) { - if( p->iRes == m_iRes ) + if( p->iRes == m_iRes || !strncmp( p->szSprite, "640_", 4 ) ) { char sz[256]; sprintf( sz, "sprites/%s.spr", p->szSprite ); @@ -295,7 +295,7 @@ void CHud::VidInit( void ) m_iSpriteCount = 0; for( j = 0; j < m_iSpriteCountAllRes; j++ ) { - if( p->iRes == m_iRes ) + if( p->iRes == m_iRes || !strncmp( p->szSprite, "640_", 4 ) ) m_iSpriteCount++; p++; } @@ -313,7 +313,7 @@ void CHud::VidInit( void ) int index = 0; for( j = 0; j < m_iSpriteCountAllRes; j++ ) { - if( p->iRes == m_iRes ) + if( p->iRes == m_iRes || !strncmp( p->szSprite, "640_", 4 ) ) { char sz[256]; sprintf( sz, "sprites/%s.spr", p->szSprite );