mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-01-31 18:07:14 +01:00
Minor adjustments in command system manager method names. And added brackets to make the code more clear.
This commit is contained in:
parent
27f2a57573
commit
50b396bf05
@ -1080,8 +1080,8 @@ void Register(HSQUIRRELVM vm)
|
||||
.Func(_SC("Clear"), &Manager::Clear)
|
||||
.Func(_SC("Attach"), &Manager::Attach)
|
||||
.Func(_SC("FindByName"), &Manager::FindByName)
|
||||
.Func(_SC("BindOnFail"), &Manager::SetOnFail)
|
||||
.Func(_SC("BindOnAuth"), &Manager::SetOnAuth)
|
||||
.Func(_SC("BindFail"), &Manager::SetOnFail)
|
||||
.Func(_SC("BindAuth"), &Manager::SetOnAuth)
|
||||
.Func(_SC("GetArray"), &Manager::GetCommandsArray)
|
||||
.Func(_SC("GetTable"), &Manager::GetCommandsTable)
|
||||
.Func(_SC("Foreach"), &Manager::ForeachCommand)
|
||||
|
@ -1754,7 +1754,7 @@ public:
|
||||
// Perform the requested check
|
||||
return (f == CMDARG_ANY) || // Requires check?
|
||||
(f & flag) || // Exact match?
|
||||
(f & CMDARG_GREEDY && flag & CMDARG_STRING);
|
||||
((f & CMDARG_GREEDY) && (flag & CMDARG_STRING));
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user