diff --git a/src/engine/shared/console.cpp b/src/engine/shared/console.cpp index b0bf0aa08..653327dd1 100644 --- a/src/engine/shared/console.cpp +++ b/src/engine/shared/console.cpp @@ -166,7 +166,7 @@ int CConsole::ParseArgs(CResult *pResult, const char *pFormat) char *pVictim = 0; pResult->AddArgument(pStr); - if(Command != 'v') + if(Command == 'v') { pVictim = pStr; } diff --git a/src/game/server/ddracecommands.cpp b/src/game/server/ddracecommands.cpp index a92acf594..f5e14f4f3 100644 --- a/src/game/server/ddracecommands.cpp +++ b/src/game/server/ddracecommands.cpp @@ -336,7 +336,7 @@ void CGameContext::ConForcePause(IConsole::IResult *pResult, void *pUserData) CGameContext *pSelf = (CGameContext *)pUserData; int Victim = pResult->GetVictim(); int Seconds = 0; - if (pResult->NumArguments() > 0) + if (pResult->NumArguments() > 1) Seconds = clamp(pResult->GetInteger(1), 0, 360); CPlayer *pPlayer = pSelf->m_apPlayers[Victim]; @@ -401,7 +401,7 @@ void CGameContext::ConMuteID(IConsole::IResult *pResult, void *pUserData) NETADDR Addr; pSelf->Server()->GetClientAddr(Victim, &Addr); - pSelf->Mute(pResult, &Addr, clamp(pResult->GetInteger(0), 1, 86400), + pSelf->Mute(pResult, &Addr, clamp(pResult->GetInteger(1), 1, 86400), pSelf->Server()->ClientName(Victim)); }