mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 22:51:57 +00:00
Couple of bugfixes.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@682 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
2976ca471e
commit
84ec331e6f
1 changed files with 19 additions and 9 deletions
|
@ -53,19 +53,23 @@ void Skin_Find (player_info_t *sc)
|
|||
if (allskins[0])
|
||||
s = allskins;
|
||||
else
|
||||
{
|
||||
s = Info_ValueForKey (sc->userinfo, "skin");
|
||||
if (!s[0])
|
||||
s = baseskin.string;
|
||||
}
|
||||
|
||||
if (*mn)
|
||||
mn = va("%s/%s", mn, s);
|
||||
|
||||
if (strstr (mn, "..") || *mn == '.')
|
||||
mn = "base";
|
||||
mn = "";
|
||||
|
||||
if (!*s)
|
||||
s = baseskin.string;
|
||||
if (!*s)
|
||||
s = "default";
|
||||
|
||||
if (*mn)
|
||||
{
|
||||
mn = va("%s/%s", mn, s);
|
||||
COM_StripExtension (mn, name);
|
||||
}
|
||||
else
|
||||
COM_StripExtension (s, name);
|
||||
|
||||
s = strchr(name, '/');
|
||||
if (s)
|
||||
|
@ -400,6 +404,12 @@ void Skin_Skins_f (void)
|
|||
{
|
||||
int i;
|
||||
|
||||
if (cls.state == ca_disconnected)
|
||||
{
|
||||
Con_Printf ("Can't \"%s\", not connected\n", Cmd_Argv(0));
|
||||
return;
|
||||
}
|
||||
|
||||
for (i=0 ; i<numskins ; i++)
|
||||
{
|
||||
if (skins[i].cache.data)
|
||||
|
|
Loading…
Reference in a new issue