MCPcopy Create free account
hub / github.com/alliedmodders/sourcemod / GetClientVoteChoice

Method GetClientVoteChoice

core/MenuVoting.cpp:248–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246}
247
248bool VoteMenuHandler::GetClientVoteChoice(int client, unsigned int *pItem)
249{
250 if (!IsClientInVotePool(client)
251 || m_ClientVotes[client] == VOTE_PENDING)
252 {
253 return false;
254 }
255
256 *pItem = m_ClientVotes[client];
257
258 return true;
259}
260
261bool VoteMenuHandler::RedrawToClient(int client, bool revotes)
262{

Callers

nothing calls this directly

Calls 1

IsClientInVotePoolFunction · 0.85

Tested by

no test coverage detected