new command 'serverdesc' temporary extends the server description

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2385 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
ac_stef
2008-08-25 23:31:24 +00:00
parent 55c342768d
commit e9b48b331e
9 changed files with 160 additions and 92 deletions
+6 -2
View File
@@ -631,6 +631,10 @@ void parsemessages(int cn, playerent *d, ucharbuf &p)
itoa(a, getint(p));
v = newvotedisplayinfo(d, type, text, a);
break;
case SA_SERVERDESC:
getstring(text, p);
v = newvotedisplayinfo(d, type, text, NULL);
break;
default:
itoa(a, getint(p));
v = newvotedisplayinfo(d, type, a, NULL);
@@ -717,9 +721,9 @@ void receivefile(uchar *data, int len)
s_sprintfd(fname)("demos/%d.dmo", now_utc); //lastmillis);
path(fname);
FILE *demo = openfile(fname, "wb");
if(!demo)
if(!demo)
{
conoutf("failed writing to \"%s\"", fname);
conoutf("failed writing to \"%s\"", fname);
return;
}
conoutf("received demo \"%s\"", fname);