/// \brief Destruct the Segment. /// /// Generally it is not necessary to delete Segment objects from application /// code, as Segment instances are owned by the Terrain object. /// Storage allocated for heightfield and surface normals is implicitly /// deleted as well as all surfaces. Segment::~Segment() { clearMods(); delete [] m_normals; Segment::Surfacestore::const_iterator I = m_surfaces.begin(); Segment::Surfacestore::const_iterator Iend = m_surfaces.end(); for(; I != Iend; ++I) { delete I->second; } }
bool ScriptManager::reloadMods() { clearMods(); return loadMods(); }