mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 09:05:19 +02: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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user