no message

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1326 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2007-10-01 18:51:23 +00:00
parent 4956040076
commit a26bcf7423
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -735,6 +735,7 @@ void voteresult(int v)
{
curvote->result = v;
curvote->millis = lastmillis + 5000;
conoutf("vote %s", v == VOTE_YES ? "passed" : "failed");
playsound(v == VOTE_YES ? S_VOTEPASS : S_VOTEFAIL);
}
}
+2 -2
View File
@@ -210,7 +210,6 @@ struct client // server side version of "dynent" type
events.setsizenodelete(0);
timesync = false;
lastevent = 0;
lastvotecall = 0;
}
void reset()
@@ -220,6 +219,7 @@ struct client // server side version of "dynent" type
messages.setsizenodelete(0);
isauthed = false;
role = CR_DEFAULT;
lastvotecall = 0;
mapchange();
}
};
@@ -1219,7 +1219,7 @@ void checkvotes(bool forceend)
sendf(-1, 1, "ri2", SV_VOTERESULT, VOTE_YES);
curvote->pass();
}
else if(forceend || stats[VOTE_NO]/(float)total > requiredcount)
else if(forceend || stats[VOTE_NO]/(float)total > requiredcount || stats[VOTE_NO] >= stats[VOTE_YES]+stats[VOTE_NEUTRAL])
{
sendf(-1, 1, "ri2", SV_VOTERESULT, VOTE_NO);
}