ConEyeEmote: Don't count the command if arguments not valid

This commit is contained in:
Alexander Akulich 2021-01-12 22:10:51 +03:00
parent 9197075654
commit 2286771349

View file

@ -1128,8 +1128,11 @@ void CGameContext::ConEyeEmote(IConsole::IResult *pResult, void *pUserData)
else if(!str_comp(pResult->GetString(0), "normal"))
pPlayer->m_DefEmote = EMOTE_NORMAL;
else
{
pSelf->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD,
"emote", "Unknown emote... Say /emote");
return;
}
int Duration = 1;
if(pResult->NumArguments() > 1)