mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
fix a few allskins bugs
This commit is contained in:
parent
ecdb5a5cb4
commit
8ddca92dd9
1 changed files with 16 additions and 1 deletions
|
@ -63,6 +63,9 @@ Skin_NextDownload (void)
|
||||||
int i;
|
int i;
|
||||||
player_info_t *sc;
|
player_info_t *sc;
|
||||||
|
|
||||||
|
if (cls.state == ca_disconnected)
|
||||||
|
return;
|
||||||
|
|
||||||
if (cls.downloadnumber == 0) {
|
if (cls.downloadnumber == 0) {
|
||||||
Con_Printf ("Checking skins...\n");
|
Con_Printf ("Checking skins...\n");
|
||||||
CL_UpdateScreen (realtime);
|
CL_UpdateScreen (realtime);
|
||||||
|
@ -109,6 +112,10 @@ void
|
||||||
CL_Skins_f (void)
|
CL_Skins_f (void)
|
||||||
{
|
{
|
||||||
Skin_Flush ();
|
Skin_Flush ();
|
||||||
|
|
||||||
|
if (cls.state == ca_disconnected)
|
||||||
|
return;
|
||||||
|
|
||||||
cls.downloadnumber = 0;
|
cls.downloadnumber = 0;
|
||||||
cls.downloadtype = dl_skin;
|
cls.downloadtype = dl_skin;
|
||||||
Skin_NextDownload ();
|
Skin_NextDownload ();
|
||||||
|
@ -122,7 +129,15 @@ CL_Skins_f (void)
|
||||||
void
|
void
|
||||||
CL_AllSkins_f (void)
|
CL_AllSkins_f (void)
|
||||||
{
|
{
|
||||||
strcpy (allskins, Cmd_Argv (1));
|
if (Cmd_Argc () == 2) {
|
||||||
|
strcpy (allskins, Cmd_Argv (1));
|
||||||
|
} else if (Cmd_Argc () == 1) {
|
||||||
|
Con_Printf ("clearing allskins\n");
|
||||||
|
allskins[0] = 0;
|
||||||
|
} else {
|
||||||
|
Con_Printf ("Usage: allskins [name]\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
CL_Skins_f ();
|
CL_Skins_f ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue