1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Deprecate get_player_velocity and add_player_velocity (#10173)

This commit is contained in:
rubenwardy 2020-10-04 00:33:45 +01:00 committed by GitHub
parent 41a6136f77
commit 3250b37e32
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 58 additions and 67 deletions

View file

@ -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;
}
}