mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-09 09:38:19 +00:00
Fix using random_unfinished_map
from rcon
This commit is contained in:
parent
14f1b36dd1
commit
9fbbf5cde7
|
@ -3140,6 +3140,8 @@ void CGameContext::ConRandomUnfinishedMap(IConsole::IResult *pResult, void *pUse
|
|||
CGameContext *pSelf = (CGameContext *)pUserData;
|
||||
|
||||
int Stars = pResult->NumArguments() ? pResult->GetInteger(0) : -1;
|
||||
if(pResult->m_ClientId != -1)
|
||||
pSelf->m_VoteCreator = pResult->m_ClientId;
|
||||
|
||||
pSelf->m_pScore->RandomUnfinishedMap(pSelf->m_VoteCreator, Stars);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue