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
|
@ -51,8 +51,6 @@ Hud::Hud(video::IVideoDriver *driver, scene::ISceneManager* smgr,
|
|||
this->inventory = inventory;
|
||||
|
||||
m_hud_scaling = g_settings->getFloat("hud_scaling");
|
||||
m_screensize = v2u32(0, 0);
|
||||
m_displaycenter = v2s32(0, 0);
|
||||
m_hotbar_imagesize = floor(HOTBAR_IMAGE_SIZE * porting::getDisplayDensity() + 0.5);
|
||||
m_hotbar_imagesize *= m_hud_scaling;
|
||||
m_padding = m_hotbar_imagesize / 12;
|
||||
|
@ -77,16 +75,9 @@ Hud::Hud(video::IVideoDriver *driver, scene::ISceneManager* smgr,
|
|||
|
||||
use_crosshair_image = tsrc->isKnownSourceImage("crosshair.png");
|
||||
|
||||
hotbar_image = "";
|
||||
use_hotbar_image = false;
|
||||
hotbar_selected_image = "";
|
||||
use_hotbar_selected_image = false;
|
||||
|
||||
m_selection_mesh = NULL;
|
||||
m_selection_boxes.clear();
|
||||
m_halo_boxes.clear();
|
||||
|
||||
m_selection_pos = v3f(0.0, 0.0, 0.0);
|
||||
std::string mode_setting = g_settings->get("node_highlighting");
|
||||
|
||||
if (mode_setting == "halo") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue