m_user_settings(user_settings)
{
assert(m_user_settings != NULL);
- Mapgen::setDefaultSettings(m_map_settings);
}
params->mgtype = mgtype;
+ // Load the mapgen param defaults
+ /* FIXME: Why is it done like this? MapgenParams should just
+ * set the defaults in its constructor instead. */
+ {
+ Settings default_settings;
+ Mapgen::setDefaultSettings(&default_settings);
+ params->MapgenParams::readParams(&default_settings);
+ params->readParams(&default_settings);
+ }
+
// Load the rest of the mapgen params from our active settings
params->MapgenParams::readParams(m_user_settings);
params->MapgenParams::readParams(m_map_settings);