mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
When minimap is disabled in configuration, really disable it (#5771)
* When minimap is disabled in configuration, really disable it
This commit is contained in:
parent
1c6d2f596d
commit
e25a38e3fb
7 changed files with 28 additions and 19 deletions
|
@ -509,7 +509,7 @@ void draw_plain(Camera &camera, bool show_hud,
|
|||
|
||||
void draw_scene(video::IVideoDriver *driver, scene::ISceneManager *smgr,
|
||||
Camera &camera, Client &client, LocalPlayer *player, Hud &hud,
|
||||
Minimap &mapper, gui::IGUIEnvironment *guienv,
|
||||
Minimap *mapper, gui::IGUIEnvironment *guienv,
|
||||
const v2u32 &screensize, const video::SColor &skycolor,
|
||||
bool show_hud, bool show_minimap)
|
||||
{
|
||||
|
@ -584,8 +584,8 @@ void draw_scene(video::IVideoDriver *driver, scene::ISceneManager *smgr,
|
|||
hud.drawLuaElements(camera.getOffset());
|
||||
camera.drawNametags();
|
||||
|
||||
if (show_minimap)
|
||||
mapper.drawMinimap();
|
||||
if (mapper && show_minimap)
|
||||
mapper->drawMinimap();
|
||||
}
|
||||
|
||||
guienv->drawAll();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue