diff options
author | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-03-16 10:34:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-16 10:34:54 +0100 |
commit | 40ce538aad9af8f7634c4ba7e9f12246fb23b31c (patch) | |
tree | da8788a581acbc18bb9f5e35a2be620ba0125471 /src/network | |
parent | eb88e5dd4b181a90b382c036cf6c4f42e63e8cc2 (diff) | |
download | minetest-40ce538aad9af8f7634c4ba7e9f12246fb23b31c.tar.gz minetest-40ce538aad9af8f7634c4ba7e9f12246fb23b31c.tar.bz2 minetest-40ce538aad9af8f7634c4ba7e9f12246fb23b31c.zip |
[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
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/clientpackethandler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/clientpackethandler.cpp b/src/network/clientpackethandler.cpp index 9bcc58110..dfaebbe53 100644 --- a/src/network/clientpackethandler.cpp +++ b/src/network/clientpackethandler.cpp @@ -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); } } |