diff options
author | sapier <Sapier at GMX dot net> | 2014-04-29 17:47:34 +0200 |
---|---|---|
committer | sapier <Sapier at GMX dot net> | 2014-04-29 22:49:04 +0200 |
commit | b5acec0a3c5701c53854ff7afdf4008863e6e8df (patch) | |
tree | 19ed8671c3b56e82e803c51eaad92948b806d13a /src/script/lua_api/l_util.cpp | |
parent | c03d7dc8a7c35708a39f9c14e2df243e212b283b (diff) | |
download | minetest-b5acec0a3c5701c53854ff7afdf4008863e6e8df.tar.gz minetest-b5acec0a3c5701c53854ff7afdf4008863e6e8df.tar.bz2 minetest-b5acec0a3c5701c53854ff7afdf4008863e6e8df.zip |
Add proper lua api deprecated handling
Diffstat (limited to 'src/script/lua_api/l_util.cpp')
-rw-r--r-- | src/script/lua_api/l_util.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/script/lua_api/l_util.cpp b/src/script/lua_api/l_util.cpp index 90a1d77ab..7babaaf71 100644 --- a/src/script/lua_api/l_util.cpp +++ b/src/script/lua_api/l_util.cpp @@ -78,6 +78,11 @@ int ModApiUtil::l_log(lua_State *L) level = LMT_ACTION; else if(levelname == "verbose") level = LMT_VERBOSE; + else if (levelname == "deprecated") { + log_deprecated(L,text); + return 0; + } + } log_printline(level, text); return 0; |