mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
ConEyeEmote: Don't count the command if arguments not valid
This commit is contained in:
parent
9197075654
commit
2286771349
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue