Improve COM_AddCommand boolean deprecated warning

This commit is contained in:
James R 2019-12-29 21:09:07 -08:00
parent 802ef0aba1
commit 65921c1702

View file

@ -191,8 +191,9 @@ static int lib_comAddCommand(lua_State *L)
if (lua_type(L, 3) == LUA_TBOOLEAN) if (lua_type(L, 3) == LUA_TBOOLEAN)
{ {
CONS_Alert(CONS_WARNING, CONS_Alert(CONS_WARNING,
"Using a boolean is deprecated and will be removed.\n" "Using a boolean for admin commands is "
"Use \"COM_\" flags instead.\n" "deprecated and will be removed.\n"
"Use \"COM_ADMIN\" instead.\n"
); );
} }
else else