mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Remove get_noiseparams function. read_noiseparams should be used from now on
This commit is contained in:
parent
fb2bc956b1
commit
cfba55ba0a
7 changed files with 21 additions and 26 deletions
|
@ -975,18 +975,6 @@ void luaentity_get(lua_State *L, u16 id)
|
|||
}
|
||||
|
||||
/******************************************************************************/
|
||||
NoiseParams *get_noiseparams(lua_State *L, int index)
|
||||
{
|
||||
NoiseParams *np = new NoiseParams;
|
||||
|
||||
if (!read_noiseparams(L, index, np)) {
|
||||
delete np;
|
||||
np = NULL;
|
||||
}
|
||||
|
||||
return np;
|
||||
}
|
||||
|
||||
bool read_noiseparams(lua_State *L, int index, NoiseParams *np)
|
||||
{
|
||||
if (index < 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue