mirror of
https://github.com/DrBeef/Raze.git
synced 2025-03-23 09:40:58 +00:00
- added missing returns in the failure cases of useitem and slot CCMDs.
This commit is contained in:
parent
a8585d72c7
commit
6a6e9299ca
1 changed files with 2 additions and 0 deletions
|
@ -280,6 +280,7 @@ CCMD(slot)
|
|||
if (argv.argc() != 2)
|
||||
{
|
||||
Printf("slot <weaponslot>: select a weapon from the given slot (1-%d)", max);
|
||||
return;
|
||||
}
|
||||
|
||||
auto slot = atoi(argv[1]);
|
||||
|
@ -310,6 +311,7 @@ CCMD(useitem)
|
|||
if (argv.argc() != 2)
|
||||
{
|
||||
Printf("useitem <itemnum>: activates an inventory item (1-%d)", max);
|
||||
return;
|
||||
}
|
||||
|
||||
auto slot = atoi(argv[1]);
|
||||
|
|
Loading…
Reference in a new issue