added arg2 to "getdemo" to allow D/L to subpath of "demos/" - e.g. "getdemo 3 bans".
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5488 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -1199,7 +1199,9 @@ void receivefile(uchar *data, int len)
|
||||
case SV_SENDDEMO:
|
||||
{
|
||||
getstring(text, p);
|
||||
defformatstring(fname)("demos/%s.dmo", text);
|
||||
extern string demosubpath;
|
||||
defformatstring(fname)("demos/%s%s.dmo", demosubpath, text);
|
||||
copystring(demosubpath, "");
|
||||
data += strlen(text);
|
||||
int demosize = getint(p);
|
||||
if(p.remaining() < demosize)
|
||||
|
||||
Reference in New Issue
Block a user