mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Settings: semi-automatic callback cleanup
This commit is contained in:
parent
9f43018df2
commit
e3813cf027
11 changed files with 25 additions and 78 deletions
|
@ -140,8 +140,7 @@ void ClientMap::onSettingChanged(std::string_view name, bool all)
|
|||
|
||||
ClientMap::~ClientMap()
|
||||
{
|
||||
for (const auto &name : ClientMap_settings)
|
||||
g_settings->deregisterChangedCallback(name, on_settings_changed, this);
|
||||
g_settings->deregisterAllChangedCallbacks(this);
|
||||
}
|
||||
|
||||
void ClientMap::updateCamera(v3f pos, v3f dir, f32 fov, v3s16 offset, video::SColor light_color)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue