Skip to content
Snippets Groups Projects
Commit 65921c17 authored by James R.'s avatar James R.
Browse files

Improve COM_AddCommand boolean deprecated warning

parent 802ef0ab
Branches
No related tags found
2 merge requests!718Rename R_IsPointInSubsector to R_PointInSubsectorOrNull/Nil,!602Local Lua commands + no magic numbers
...@@ -191,8 +191,9 @@ static int lib_comAddCommand(lua_State *L) ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment