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:
flowtron
2010-07-30 19:59:43 +00:00
parent a6e0668d84
commit b97f73eace
3 changed files with 10 additions and 4 deletions
+3 -1
View File
@@ -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)