mirror of
https://github.com/minetest/minetest.git
synced 2025-03-13 13:52:35 +01:00
Rename getMapSettingNoiseParams to getNoiseParams
This commit is contained in:
src
@ -41,10 +41,9 @@ bool MapSettingsManager::getMapSetting(
|
||||
}
|
||||
|
||||
|
||||
bool MapSettingsManager::getMapSettingNoiseParams(
|
||||
bool MapSettingsManager::getNoiseParams(
|
||||
const std::string &name, NoiseParams *value_out) const
|
||||
{
|
||||
// TODO: Rename to "getNoiseParams"
|
||||
return m_map_settings->getNoiseParams(name, *value_out);
|
||||
}
|
||||
|
||||
|
@ -37,7 +37,7 @@ public:
|
||||
|
||||
bool getMapSetting(const std::string &name, std::string *value_out) const;
|
||||
|
||||
bool getMapSettingNoiseParams(const std::string &name,
|
||||
bool getNoiseParams(const std::string &name,
|
||||
NoiseParams *value_out) const;
|
||||
|
||||
// Note: Map config becomes read-only after makeMapgenParams() gets called
|
||||
|
@ -892,7 +892,7 @@ int ModApiMapgen::l_get_mapgen_setting_noiseparams(lua_State *L)
|
||||
getEmergeManager(L)->map_settings_mgr;
|
||||
|
||||
const char *name = luaL_checkstring(L, 1);
|
||||
if (!settingsmgr->getMapSettingNoiseParams(name, &np))
|
||||
if (!settingsmgr->getNoiseParams(name, &np))
|
||||
return 0;
|
||||
|
||||
push_noiseparams(L, &np);
|
||||
|
@ -129,7 +129,7 @@ void TestMapSettingsManager::testMapSettingsManager()
|
||||
|
||||
{
|
||||
NoiseParams dummy;
|
||||
mgr.getMapSettingNoiseParams("mgv5_np_factor", &dummy);
|
||||
mgr.getNoiseParams("mgv5_np_factor", &dummy);
|
||||
check_noise_params(&dummy, &script_np_factor);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user