diff --git a/code/ryzom/client/src/interface_v3/group_map.cpp b/code/ryzom/client/src/interface_v3/group_map.cpp index a5d0c4470..ee80b3319 100644 --- a/code/ryzom/client/src/interface_v3/group_map.cpp +++ b/code/ryzom/client/src/interface_v3/group_map.cpp @@ -4303,6 +4303,17 @@ class CUpdateLandMarksColor : public IActionHandler{public: virtual void execute }}; REGISTER_ACTION_HANDLER (CUpdateLandMarksColor, "update_landmarks_color"); +NLMISC_COMMAND( setMap, "Change the map", "" ) +{ + if (args.size() != 1) return false; + + CInterfaceManager *pIM = CInterfaceManager::getInstance(); + CGroupMap *pMap = dynamic_cast(CWidgetManager::getInstance()->getElementFromId("ui:interface:map:content:map_content:actual_map")); + if (pMap != NULL) + pMap->setMap(args[0]); + + return true; +} //////////////////// // DEBUG COMMANDS // @@ -4363,17 +4374,5 @@ NLMISC_COMMAND( testRespawn, "Debug : test respawn map", "" ) return true; } -NLMISC_COMMAND( setMap, "Debug : test respawn map", "" ) -{ - if (args.size() != 1) return false; - - CInterfaceManager *pIM = CInterfaceManager::getInstance(); - CGroupMap *pMap = dynamic_cast(CWidgetManager::getInstance()->getElementFromId("ui:interface:map:content:map_content:actual_map")); - if (pMap != NULL) - pMap->setMap(args[0]); - - return true; -} - #endif