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:
driAn
2007-10-01 18:08:50 +00:00
parent ed3ac45826
commit 6f7a4b44df
4 changed files with 7 additions and 1 deletions
+1
View File
@@ -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)
+2
View File
@@ -739,6 +739,8 @@ void voteresult(int v)
}
}
void clearvote() { DELETEP(curvote); DELETEP(calledvote); }
COMMAND(callvote, ARG_3STR);
COMMAND(vote, ARG_1INT);
+2 -1
View File
@@ -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);
+2
View File
@@ -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();