mirror of
https://github.com/ZDoom/Raze.git
synced 2025-05-30 00:41:24 +00:00
- use CCMDs for weapon and inventory selection, courtesy of ZDuke.
This commit is contained in:
parent
01d3ca870d
commit
29e107ad24
32 changed files with 364 additions and 550 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