From d4aff474c29d3d9b1a524cfcd5fca925dab79c5b Mon Sep 17 00:00:00 2001 From: Mattes D Date: Sun, 21 Aug 2016 11:03:10 +0200 Subject: cLuaState: Added template to push multiple values in a single call. (#3331) --- src/Bindings/ManualBindings_World.cpp | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'src/Bindings/ManualBindings_World.cpp') diff --git a/src/Bindings/ManualBindings_World.cpp b/src/Bindings/ManualBindings_World.cpp index 9bb9778dd..f24e5ac34 100644 --- a/src/Bindings/ManualBindings_World.cpp +++ b/src/Bindings/ManualBindings_World.cpp @@ -296,10 +296,7 @@ static int tolua_cWorld_GetBlockInfo(lua_State * tolua_S) L.Push(res); if (res) { - L.Push(BlockType); - L.Push(BlockMeta); - L.Push(BlockSkyLight); - L.Push(BlockBlockLight); + L.Push(BlockType, BlockMeta, BlockSkyLight, BlockBlockLight); return 5; } return 1; @@ -345,8 +342,7 @@ static int tolua_cWorld_GetBlockTypeMeta(lua_State * tolua_S) L.Push(res); if (res) { - L.Push(BlockType); - L.Push(BlockMeta); + L.Push(BlockType, BlockMeta); return 3; } return 1; @@ -390,10 +386,7 @@ static int tolua_cWorld_GetSignLines(lua_State * tolua_S) L.Push(res); if (res) { - L.Push(Line1); - L.Push(Line2); - L.Push(Line3); - L.Push(Line4); + L.Push(Line1, Line2, Line3, Line4); return 5; } return 1; -- cgit v1.2.3