more stopdemo cleanup

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6852 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
sireus
2012-06-29 15:38:02 +00:00
parent 374974fc23
commit 296dee3600
4 changed files with 4 additions and 16 deletions
-1
View File
@@ -12,7 +12,6 @@ const unignoreall [ if $connected [ ingall = 0; clearignored ]; echo (blue)NOTE
const giveadmin [ callvote 6 $arg1 ]
const map [ callvote 7 $arg1 $arg2 ]
const recorddemo [ callvote 8 1 ]
//const stopdemo [ callvote 9 ]
const cleardemo [ callvote 10 $arg1 ]
const cleardemos [ callvote 10 0 ]
const serverdesc [ callvote 11 $arg1 ]
+2
View File
@@ -1440,6 +1440,8 @@ void callvote(int type, const char *arg1, const char *arg2)
sendstring(arg1, p);
break;
case SA_STOPDEMO:
// compatibility
break;
case SA_REMBANS:
case SA_SHUFFLETEAMS:
break;
+2
View File
@@ -2241,6 +2241,8 @@ void callvotepacket (int cn, voteinfo *v = curvote)
sendstring(v->text, q);
break;
case SA_STOPDEMO:
// compatibility
break;
case SA_REMBANS:
case SA_SHUFFLETEAMS:
break;
-15
View File
@@ -285,21 +285,6 @@ struct recorddemoaction : enableaction // TODO: remove completely
}
};
struct stopdemoaction : serveraction
{
bool isvalid() { return serveraction::isvalid() && m_demo; }
void perform()
{
if(m_demo) enddemoplayback();
}
stopdemoaction()
{
role = CR_ADMIN;
area |= EE_LOCAL_SERV;
copystring(desc, "stop demo playback");
}
};
struct cleardemosaction : serveraction
{
int demo;