- update of console code.
Backports con_pulsetext and toggle messages for CVARs from Raze.
This commit is contained in:
parent
c415518066
commit
700304bf46
10 changed files with 44 additions and 7 deletions
|
|
@ -1123,7 +1123,7 @@ int C_RegisterFunction(const char* pszName, const char* pszDesc, int (*func)(CCm
|
|||
{
|
||||
if (args.argc() > 0) args.operator[](0);
|
||||
CCmdFuncParm param = { args.argc() - 1, nname.GetChars(), (const char**)args._argv + 1, args.cmd };
|
||||
if (func(¶m) != CCMD_OK)
|
||||
if (func(¶m) != CCMD_OK && pszDesc)
|
||||
{
|
||||
Printf("%s\n", pszDesc);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue