mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-01-20 00:24:49 +00:00
Oops
Fix for missing log entry
This commit is contained in:
parent
aff3b2b776
commit
5d7e9abbef
|
|
@ -782,15 +782,16 @@ function DefaultGame::voteKickPlayer(%game, %admin, %client)
|
|||
{
|
||||
%team = %client.team;
|
||||
%totalVotes = %game.votesFor[%game.kickTeam] + %game.votesAgainst[%game.kickTeam];
|
||||
%cause = "(vote)";
|
||||
if(%totalVotes > 0 && (%game.votesFor[%game.kickTeam] / %totalVotes) > ($Host::VotePasspercent / 100))
|
||||
{
|
||||
kick(%client, %admin, %game.kickGuid);
|
||||
%cause = "(vote)";
|
||||
|
||||
%key = "Passed";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
for ( %idx = 0; %idx < ClientGroup.getCount(); %idx++ )
|
||||
{
|
||||
%cl = ClientGroup.getObject( %idx );
|
||||
|
|
|
|||
Loading…
Reference in a new issue