aboutsummaryrefslogtreecommitdiff
path: root/src/script/common
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2021-03-02 13:29:13 +0100
committerElias Fleckenstein <eliasfleckenstein@web.de>2021-03-05 09:45:58 +0100
commitf9d3ab01d35cbad6d9bd0f203c6647fbfe251754 (patch)
tree31c0dcfca14d1734f400213ba95dfdcc9f26c6d0 /src/script/common
parent28ba013a4a31c7496044a26fcedea3771dd22aa2 (diff)
downloadminetest-f9d3ab01d35cbad6d9bd0f203c6647fbfe251754.tar.xz
Code quality in files that were changed
Diffstat (limited to 'src/script/common')
-rw-r--r--src/script/common/c_content.cpp2
-rw-r--r--src/script/common/c_content.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/script/common/c_content.cpp b/src/script/common/c_content.cpp
index 90787e13d..585e664fd 100644
--- a/src/script/common/c_content.cpp
+++ b/src/script/common/c_content.cpp
@@ -123,6 +123,7 @@ void read_item_definition(lua_State* L, int index,
getstringfield(L, index, "node_placement_prediction",
def.node_placement_prediction);
}
+
/******************************************************************************/
void read_wield_animation(lua_State *L, int index)
{
@@ -230,6 +231,7 @@ void read_wield_animation(lua_State *L, int index)
anim.setDuration(totalDuration);
lua_pop(L, 1);
}
+
/******************************************************************************/
void push_item_definition(lua_State *L, const ItemDefinition &i)
{
diff --git a/src/script/common/c_content.h b/src/script/common/c_content.h
index 2733be663..181176efe 100644
--- a/src/script/common/c_content.h
+++ b/src/script/common/c_content.h
@@ -47,7 +47,6 @@ class NodeDefManager;
struct PointedThing;
struct ItemStack;
struct ItemDefinition;
-
struct ToolCapabilities;
struct ObjectProperties;
struct SimpleSoundSpec;
@@ -109,7 +108,7 @@ void push_item_definition (lua_State *L,
const ItemDefinition &i);
void push_item_definition_full (lua_State *L,
const ItemDefinition &i);
-void read_wield_animation(lua_State *L, int index);
+void read_wield_animation(lua_State *L, int index);
void read_object_properties (lua_State *L, int index,
ServerActiveObject *sao,