summaryrefslogtreecommitdiff
path: root/src/nodedef.h
diff options
context:
space:
mode:
authorLoïc Blot <nerzhul@users.noreply.github.com>2017-06-18 19:55:15 +0200
committerGitHub <noreply@github.com>2017-06-18 19:55:15 +0200
commit4faaadc8d50d6ab7a19d22bd5a760c4b8321a51f (patch)
tree57ce8401a5f6538024c1f19d37d576fba21e147b /src/nodedef.h
parent8f7785771b9e02b1a1daf7a252550d78ea93053d (diff)
downloadminetest-4faaadc8d50d6ab7a19d22bd5a760c4b8321a51f.tar.gz
minetest-4faaadc8d50d6ab7a19d22bd5a760c4b8321a51f.tar.bz2
minetest-4faaadc8d50d6ab7a19d22bd5a760c4b8321a51f.zip
Cpp11 patchset 11: continue working on constructor style migration (#6004)
Diffstat (limited to 'src/nodedef.h')
-rw-r--r--src/nodedef.h28
1 files changed, 11 insertions, 17 deletions
diff --git a/src/nodedef.h b/src/nodedef.h
index 4669df7f0..97697e746 100644
--- a/src/nodedef.h
+++ b/src/nodedef.h
@@ -207,24 +207,18 @@ enum PlantlikeStyle {
struct TileDef
{
- std::string name;
- bool backface_culling; // Takes effect only in special cases
- bool tileable_horizontal;
- bool tileable_vertical;
+ std::string name = "";
+ bool backface_culling = true; // Takes effect only in special cases
+ bool tileable_horizontal = true;
+ bool tileable_vertical = true;
//! If true, the tile has its own color.
- bool has_color;
+ bool has_color = false;
//! The color of the tile.
- video::SColor color;
+ video::SColor color = video::SColor(0xFFFFFFFF);
struct TileAnimationParams animation;
- TileDef() :
- name(""),
- backface_culling(true),
- tileable_horizontal(true),
- tileable_vertical(true),
- has_color(false),
- color(video::SColor(0xFFFFFFFF))
+ TileDef()
{
animation.type = TAT_NONE;
}
@@ -514,12 +508,12 @@ public:
void nodeResolveInternal();
- u32 m_nodenames_idx;
- u32 m_nnlistsizes_idx;
+ u32 m_nodenames_idx = 0;
+ u32 m_nnlistsizes_idx = 0;
std::vector<std::string> m_nodenames;
std::vector<size_t> m_nnlistsizes;
- INodeDefManager *m_ndef;
- bool m_resolve_done;
+ INodeDefManager *m_ndef = nullptr;
+ bool m_resolve_done = false;
};
#endif