diff options
author | Loic Blot <loic.blot@unix-experience.fr> | 2017-07-26 23:11:46 +0200 |
---|---|---|
committer | Loic Blot <loic.blot@unix-experience.fr> | 2017-07-26 23:11:46 +0200 |
commit | 9d412dd0754ce9eadf0f6122437d66d1dbfbf35c (patch) | |
tree | 74f421bac8ab1f23f6f5388ca723b150c56958c2 /src/mapblock.cpp | |
parent | 3e50850260db13ec63ce4ca0e47e7fd7e30ce484 (diff) | |
download | hax-minetest-server-9d412dd0754ce9eadf0f6122437d66d1dbfbf35c.tar.gz hax-minetest-server-9d412dd0754ce9eadf0f6122437d66d1dbfbf35c.zip |
Remove unused Map::getDayNightDiff + fix one undefined variable in mapblock.cpp
Diffstat (limited to 'src/mapblock.cpp')
-rw-r--r-- | src/mapblock.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mapblock.cpp b/src/mapblock.cpp index ed4f09692..910e91316 100644 --- a/src/mapblock.cpp +++ b/src/mapblock.cpp @@ -361,7 +361,7 @@ void MapBlock::actuallyUpdateDayNightDiff() return; } - bool differs; + bool differs = false; /* Check if any lighting value differs @@ -465,7 +465,7 @@ static void getBlockNodeIdMapping(NameIdMapping *nimap, MapNode *nodes, const ContentFeatures &f = nodedef->get(global_id); const std::string &name = f.name; - if(name == "") + if (name.empty()) unknown_contents.insert(global_id); else nimap->set(id, name); |