fix custom player skins

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4453 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
ac_stef
2009-05-29 18:17:08 +00:00
parent 0b454b65e1
commit 44172c8c88
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -666,7 +666,7 @@ const char *getclientskin(const char *name, const char *suf)
int sl = (int)strlen(s) - suflen;
if(sl > 0 && !strcmp(s + sl, suf))
{
if(!strncmp(name, s, namelen)) return s; // exact match
if(namelen == sl && !strncmp(name, s, namelen)) return s; // exact match
if(s[sl - 1] == '_')
{
s_strcpy(tmp, s);