diff options
author | rubenwardy <rw@rubenwardy.com> | 2020-10-04 00:33:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-04 00:33:45 +0100 |
commit | 3250b37e32f264db04c1ca449d9feefc22fd38b7 (patch) | |
tree | 9cb544e2e9df867bdc83f86c60d7fd912e0d0fe1 /src/script/lua_api/l_base.cpp | |
parent | 41a6136f774a30364b6d3fd2042c9dbeb34f2109 (diff) | |
download | minetest-3250b37e32f264db04c1ca449d9feefc22fd38b7.tar.gz minetest-3250b37e32f264db04c1ca449d9feefc22fd38b7.tar.bz2 minetest-3250b37e32f264db04c1ca449d9feefc22fd38b7.zip |
Deprecate get_player_velocity and add_player_velocity (#10173)
Diffstat (limited to 'src/script/lua_api/l_base.cpp')
-rw-r--r-- | src/script/lua_api/l_base.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/script/lua_api/l_base.cpp b/src/script/lua_api/l_base.cpp index 2bee09436..03ef5447a 100644 --- a/src/script/lua_api/l_base.cpp +++ b/src/script/lua_api/l_base.cpp @@ -170,10 +170,11 @@ void ModApiBase::markAliasDeprecated(luaL_Reg *reg) m_deprecated_wrappers.emplace( std::pair<std::string, luaL_Reg>(reg->name, original_reg)); reg->func = l_deprecated_function; + } else { + last_func = reg->func; + last_name = reg->name; } - last_func = reg->func; - last_name = reg->name; ++reg; } } |