mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Remove unused Map::getDayNightDiff + fix one undefined variable in mapblock.cpp
This commit is contained in:
parent
3e50850260
commit
9d412dd075
3 changed files with 2 additions and 68 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue