no message
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1322 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -150,6 +150,7 @@ void disconnect(int onlyclean, int async)
|
||||
player1->clientrole = CR_DEFAULT;
|
||||
if(m_botmode) BotManager.EndMap();
|
||||
loopv(players) zapplayer(players[i]);
|
||||
clearvote();
|
||||
localdisconnect();
|
||||
}
|
||||
if(!connpeer && clienthost)
|
||||
|
||||
@@ -739,6 +739,8 @@ void voteresult(int v)
|
||||
}
|
||||
}
|
||||
|
||||
void clearvote() { DELETEP(curvote); DELETEP(calledvote); }
|
||||
|
||||
COMMAND(callvote, ARG_3STR);
|
||||
COMMAND(vote, ARG_1INT);
|
||||
|
||||
|
||||
+2
-1
@@ -171,12 +171,13 @@ struct votedisplayinfo
|
||||
votedisplayinfo() : owner(NULL), result(VOTE_NEUTRAL), millis(0), localplayervoted(false) { loopi(VOTE_NUM) stats[i] = VOTE_NEUTRAL; }
|
||||
};
|
||||
|
||||
extern votedisplayinfo *newvotedisplayinfo(playerent *owner, int type, char *arg1, char *arg2);
|
||||
extern void callvotesuc();
|
||||
extern void callvoteerr(int e);
|
||||
extern void displayvote(votedisplayinfo *v);
|
||||
extern void voteresult(int v);
|
||||
extern void votecount(int v);
|
||||
extern votedisplayinfo *newvotedisplayinfo(playerent *owner, int type, char *arg1, char *arg2);
|
||||
extern void clearvote();
|
||||
|
||||
// scoreboard
|
||||
extern void showscores(bool on);
|
||||
|
||||
@@ -1860,6 +1860,8 @@ void serverslice(uint timeout) // main server update, called from cube main lo
|
||||
if(m_arena) arenacheck();
|
||||
}
|
||||
|
||||
lastsec = seconds;
|
||||
|
||||
if(curvote && !curvote->isalive()) checkvotes(true);
|
||||
|
||||
int nonlocalclients = numnonlocalclients();
|
||||
|
||||
Reference in New Issue
Block a user