clean up votes when player is disconnected
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3529 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -994,6 +994,12 @@ void clearvote() { DELETEP(curvote); DELETEP(calledvote); }
|
||||
COMMANDN(callvote, scallvote, ARG_3STR); //fixme,ah
|
||||
COMMAND(vote, ARG_1INT);
|
||||
|
||||
void cleanplayervotes(playerent *p)
|
||||
{
|
||||
if(calledvote && calledvote->owner==p) calledvote->owner = NULL;
|
||||
if(curvote && curvote->owner==p) curvote->owner = NULL;
|
||||
}
|
||||
|
||||
void whois(int cn)
|
||||
{
|
||||
addmsg(SV_WHOIS, "ri", cn);
|
||||
|
||||
Reference in New Issue
Block a user