mirror of
https://github.com/diamante0018/BlackOpsPlugin.git
synced 2025-04-19 18:12:54 +00:00
Nesting
This commit is contained in:
parent
757a68755b
commit
b4fa5527ff
@ -7,6 +7,8 @@
|
||||
|
||||
#include "command.hpp"
|
||||
|
||||
constexpr auto CMD_MAX_NESTING = 8;
|
||||
|
||||
namespace command
|
||||
{
|
||||
std::unordered_map<std::string, std::function<void(params&)>> handlers;
|
||||
@ -25,6 +27,7 @@ namespace command
|
||||
params::params()
|
||||
: nesting_(game::sv_cmd_args->nesting)
|
||||
{
|
||||
assert(game::sv_cmd_args->nesting < CMD_MAX_NESTING);
|
||||
}
|
||||
|
||||
int params::size() const
|
||||
|
Loading…
x
Reference in New Issue
Block a user