mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-06-02 18:11:12 +00:00
remove the hardcoding of qw from all but the default server gamedir. This
should take care of skin downloads when using --with-newstyle
This commit is contained in:
parent
45c62d5923
commit
186bec3342
5 changed files with 18 additions and 11 deletions
|
@ -448,8 +448,8 @@ CL_ParseDownload (void)
|
|||
snprintf (name, sizeof (name), "%s/%s", com_gamedir,
|
||||
cls.downloadtempname);
|
||||
else
|
||||
snprintf (name, sizeof (name), "%s/qw/%s", fs_userpath->string,
|
||||
cls.downloadtempname);
|
||||
snprintf (name, sizeof (name), "%s/%s/%s", fs_userpath->string,
|
||||
fs_skinbase->string, cls.downloadtempname);
|
||||
|
||||
COM_CreatePath (name);
|
||||
|
||||
|
@ -501,10 +501,10 @@ CL_ParseDownload (void)
|
|||
snprintf (newn, sizeof (newn), "%s/%s", com_gamedir,
|
||||
cls.downloadname);
|
||||
} else {
|
||||
snprintf (oldn, sizeof (oldn), "%s/qw/%s", fs_userpath->string,
|
||||
cls.downloadtempname);
|
||||
snprintf (newn, sizeof (newn), "%s/qw/%s", fs_userpath->string,
|
||||
cls.downloadname);
|
||||
snprintf (oldn, sizeof (oldn), "%s/%s/%s", fs_userpath->string,
|
||||
fs_skinbase->string, cls.downloadtempname);
|
||||
snprintf (newn, sizeof (newn), "%s/%s/%s", fs_userpath->string,
|
||||
fs_skinbase->string, cls.downloadname);
|
||||
}
|
||||
r = Qrename (oldn, newn);
|
||||
if (r)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue