Ignore vote actions if target is no longer available (#649)

This commit is contained in:
Timocop
2017-08-22 20:56:12 +01:00
committed by Asher Baker
parent 68c00b8ae7
commit ea6cf26929
6 changed files with 71 additions and 48 deletions
+2 -1
View File
@@ -39,7 +39,8 @@ void DisplayVoteBurnMenu(int client, int target, char[] name)
return;
}
g_voteClient[VOTE_CLIENTID] = target;
g_voteTarget = GetClientUserId(target);
GetClientName(target, g_voteInfo[VOTE_NAME], sizeof(g_voteInfo[]));
LogAction(client, target, "\"%L\" initiated a burn vote against \"%L\"", client, target);
+2 -1
View File
@@ -39,7 +39,8 @@ void DisplayVoteSlayMenu(int client, int target, char[] name)
return;
}
g_voteClient[VOTE_CLIENTID] = target;
g_voteTarget = GetClientUserId(target);
GetClientName(target, g_voteInfo[VOTE_NAME], sizeof(g_voteInfo[]));
LogAction(client, target, "\"%L\" initiated a slay vote against \"%L\"", client, target);