engine/maps/source/MapRegistry.cpp
// Remove a map with the given ID from the registry.  Return false
// if the map doesn't exist.
Remove a map with the given ID from the registry.  Return false
if the map doesn't exist.
Remove a map with the given ID from the registry . Return false if the map doesn ' t exist .
bool MapRegistry::remove_map(const string& map_id)
{
  bool map_removed = false;
  map<string, MapPtr>::iterator r_it = map_registry.find(map_id);
  if (r_it != map_registry.end())
  {
    map_registry.erase(r_it);
    map_removed = true;
  }
  return map_removed;
}
bool MapRegistry :: remove_map ( const string & map_id ) { bool map_removed = false ; map < string , MapPtr > :: iterator r_it = map_registry . find ( map_id ) ; if ( r_it != map_registry . end ( ) ) { map_registry . erase ( r_it ) ; map_removed = true ; } return map_removed ; }
Remove a map with the given ID from the registry.
Remove a map with the given ID from the registry .