mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fix skin load
This commit is contained in:
parent
1d961a262f
commit
ec16abdb54
|
@ -138,7 +138,7 @@ int CSkins::LoadSkin(const char *pName, const char *pPath, int DirType, int *pGe
|
|||
for(int x = 0; x < BodySize; x++)
|
||||
{
|
||||
int v = d[y * Pitch + x * 4];
|
||||
if(OrgWeight == 0)
|
||||
if(v <= OrgWeight && OrgWeight == 0)
|
||||
v = 0;
|
||||
else if(v <= OrgWeight)
|
||||
v = (int)(((v / (float)OrgWeight) * NewWeight));
|
||||
|
|
Loading…
Reference in a new issue