diff options
author | Lars Müller <34514239+appgurueu@users.noreply.github.com> | 2022-02-04 20:28:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-04 20:28:43 +0100 |
commit | 1ee37148a8072fe6350124cd51c812c3d3fb069a (patch) | |
tree | 06e2d9153e7998ade54764a00788b5bcec6798b3 /src/script/common/c_converter.cpp | |
parent | 1c73902005bb5c7a40be5571bff9c232d8c69536 (diff) | |
download | minetest-1ee37148a8072fe6350124cd51c812c3d3fb069a.tar.gz minetest-1ee37148a8072fe6350124cd51c812c3d3fb069a.tar.bz2 minetest-1ee37148a8072fe6350124cd51c812c3d3fb069a.zip |
Fix types of get_mapgen_setting_noiseparams (#12025)
Diffstat (limited to 'src/script/common/c_converter.cpp')
-rw-r--r-- | src/script/common/c_converter.cpp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/script/common/c_converter.cpp b/src/script/common/c_converter.cpp index 19734b913..716405593 100644 --- a/src/script/common/c_converter.cpp +++ b/src/script/common/c_converter.cpp @@ -73,13 +73,6 @@ static void set_vector_metatable(lua_State *L) lua_pop(L, 1); } - -void push_float_string(lua_State *L, float value) -{ - auto str = ftos(value); - lua_pushstring(L, str.c_str()); -} - void push_v3f(lua_State *L, v3f p) { lua_createtable(L, 0, 3); @@ -101,26 +94,6 @@ void push_v2f(lua_State *L, v2f p) lua_setfield(L, -2, "y"); } -void push_v3_float_string(lua_State *L, v3f p) -{ - lua_createtable(L, 0, 3); - push_float_string(L, p.X); - lua_setfield(L, -2, "x"); - push_float_string(L, p.Y); - lua_setfield(L, -2, "y"); - push_float_string(L, p.Z); - lua_setfield(L, -2, "z"); -} - -void push_v2_float_string(lua_State *L, v2f p) -{ - lua_createtable(L, 0, 2); - push_float_string(L, p.X); - lua_setfield(L, -2, "x"); - push_float_string(L, p.Y); - lua_setfield(L, -2, "y"); -} - v2s16 read_v2s16(lua_State *L, int index) { v2s16 p; |