mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Minimap: Add new HUD flag for minimap radar mode
Flag default is true to not change default behaviour. The existing minimap HUD flag remains the master control for minimap.
This commit is contained in:
parent
a3441638c6
commit
7657fe7a50
6 changed files with 33 additions and 17 deletions
|
@ -2818,6 +2818,9 @@ void Game::toggleMinimap(bool shift_pressed)
|
|||
if (hud_flags & HUD_FLAG_MINIMAP_VISIBLE) {
|
||||
mode = mapper->getMinimapMode();
|
||||
mode = (MinimapMode)((int)mode + 1);
|
||||
// If radar is disabled and in, or switching to, radar mode
|
||||
if (!(hud_flags & HUD_FLAG_MINIMAP_RADAR_VISIBLE) && mode > 3)
|
||||
mode = MINIMAP_MODE_OFF;
|
||||
}
|
||||
|
||||
flags.show_minimap = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue