2960: fix for a SixUp vote creator id which wasn't set r=def- a=pure-luck-999

cc @Learath2 

Co-authored-by: Pure luck <pure_luck@fastmail.com>
This commit is contained in:
bors[bot] 2020-09-30 15:04:45 +00:00 committed by GitHub
commit 22294ec9b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -330,10 +330,10 @@ void CGameContext::CallVote(int ClientID, const char *pDesc, const char *pCmd, c
if(!pSixupDesc) if(!pSixupDesc)
pSixupDesc = pDesc; pSixupDesc = pDesc;
m_VoteCreator = ClientID;
StartVote(pDesc, pCmd, pReason, pSixupDesc); StartVote(pDesc, pCmd, pReason, pSixupDesc);
pPlayer->m_Vote = 1; pPlayer->m_Vote = 1;
pPlayer->m_VotePos = m_VotePos = 1; pPlayer->m_VotePos = m_VotePos = 1;
m_VoteCreator = ClientID;
pPlayer->m_LastVoteCall = Now; pPlayer->m_LastVoteCall = Now;
} }