mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 00:55:20 +02:00
[CSM] Add minimap API modifiers (#5399)
* Rename Mapper (too generic) to Minimap * Add lua functions to get/set position, angle, mode for minimap * Client: rename m_mapper to m_minimap * Add minimap to core.ui namespace (core.ui.minimap) * Add various functions to manage minimap (show, hide, toggle_shape) * Cleanup trivial declaration in client
This commit is contained in:
@@ -1140,7 +1140,7 @@ void Client::handleCommand_HudSetFlags(NetworkPacket* pkt)
|
||||
if (m_minimap_disabled_by_server && was_minimap_visible) {
|
||||
// defers a minimap update, therefore only call it if really
|
||||
// needed, by checking that minimap was visible before
|
||||
m_mapper->setMinimapMode(MINIMAP_MODE_OFF);
|
||||
m_minimap->setMinimapMode(MINIMAP_MODE_OFF);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user