diff options
author | Loïc Blot <nerzhul@users.noreply.github.com> | 2018-07-08 23:06:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-08 23:06:33 +0200 |
commit | a61e1a4dbce39ced7a1da599d87dfcb876613109 (patch) | |
tree | 6cd5177133cf93773da851fbe233e2088b67661b /src/script/common/c_converter.cpp | |
parent | 94cd2bfeac073bf0ff0c384e4921c90f281747b0 (diff) | |
download | minetest-a61e1a4dbce39ced7a1da599d87dfcb876613109.tar.xz |
Lua templating reading (part 4): s16, v2s16, v2f (#7512)
Diffstat (limited to 'src/script/common/c_converter.cpp')
-rw-r--r-- | src/script/common/c_converter.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/script/common/c_converter.cpp b/src/script/common/c_converter.cpp index 0ee5afa3e..dfd3f5cea 100644 --- a/src/script/common/c_converter.cpp +++ b/src/script/common/c_converter.cpp @@ -113,21 +113,6 @@ v2s16 read_v2s16(lua_State *L, int index) return p; } -v2s16 check_v2s16(lua_State *L, int index) -{ - v2s16 p; - CHECK_POS_TAB(index); - lua_getfield(L, index, "x"); - CHECK_POS_COORD("x"); - p.X = lua_tonumber(L, -1); - lua_pop(L, 1); - lua_getfield(L, index, "y"); - CHECK_POS_COORD("y"); - p.Y = lua_tonumber(L, -1); - lua_pop(L, 1); - return p; -} - void push_v2s16(lua_State *L, v2s16 p) { lua_newtable(L); |