mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-30 16:54:29 +00:00
engine: client: cl_tent: fixed incorrect players spray textures update
This commit is contained in:
parent
084fac3606
commit
3ab749cc2e
@ -2928,10 +2928,14 @@ void CL_PlayerDecal( int playernum, int customIndex, int entityIndex, float *pos
|
|||||||
{
|
{
|
||||||
if( !pCust->nUserData1 )
|
if( !pCust->nUserData1 )
|
||||||
{
|
{
|
||||||
qboolean updateSprayTexture;
|
int sprayTextureIndex;
|
||||||
const char *decalname = va( "player%dlogo%d", playernum, customIndex );
|
const char *decalname = va( "player%dlogo%d", playernum, customIndex );
|
||||||
updateSprayTexture = ref.dllFuncs.GL_FindTexture( decalname ) != 0;
|
sprayTextureIndex = ref.dllFuncs.GL_FindTexture( decalname );
|
||||||
pCust->nUserData1 = ref.dllFuncs.GL_LoadTextureFromBuffer( decalname, pCust->pInfo, TF_DECAL, updateSprayTexture );
|
if( sprayTextureIndex != 0 )
|
||||||
|
{
|
||||||
|
ref.dllFuncs.GL_FreeTexture( sprayTextureIndex );
|
||||||
|
}
|
||||||
|
pCust->nUserData1 = GL_LoadTextureInternal( decalname, pCust->pInfo, TF_DECAL );
|
||||||
}
|
}
|
||||||
textureIndex = pCust->nUserData1;
|
textureIndex = pCust->nUserData1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user