mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Cpp11 initializers 2 (#5999)
* C++11 patchset 10: continue cleanup on constructors * Drop obsolete bool MainMenuData::enable_public (setting is called with cURL in server loop) * More classes cleanup * More classes cleanup + change NULL tests to boolean tests
This commit is contained in:
parent
76be103a91
commit
8f7785771b
59 changed files with 326 additions and 639 deletions
12
src/map.cpp
12
src/map.cpp
|
@ -65,12 +65,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
Map::Map(std::ostream &dout, IGameDef *gamedef):
|
||||
m_dout(dout),
|
||||
m_gamedef(gamedef),
|
||||
m_sector_cache(NULL),
|
||||
m_nodedef(gamedef->ndef()),
|
||||
m_transforming_liquid_loop_count_multiplier(1.0f),
|
||||
m_unprocessed_count(0),
|
||||
m_inc_trending_up_start_time(0),
|
||||
m_queue_size_timer_started(false)
|
||||
m_nodedef(gamedef->ndef())
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -1240,8 +1235,7 @@ ServerMap::ServerMap(const std::string &savedir, IGameDef *gamedef,
|
|||
EmergeManager *emerge):
|
||||
Map(dout_server, gamedef),
|
||||
settings_mgr(g_settings, savedir + DIR_DELIM + "map_meta.txt"),
|
||||
m_emerge(emerge),
|
||||
m_map_metadata_changed(true)
|
||||
m_emerge(emerge)
|
||||
{
|
||||
verbosestream<<FUNCTION_NAME<<std::endl;
|
||||
|
||||
|
@ -2618,8 +2612,6 @@ bool ServerMap::repairBlockLight(v3s16 blockpos,
|
|||
|
||||
MMVManip::MMVManip(Map *map):
|
||||
VoxelManipulator(),
|
||||
m_is_dirty(false),
|
||||
m_create_area(false),
|
||||
m_map(map)
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue