mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Implement minetest.sound_fade()
This commit is contained in:
parent
054c5dfaa3
commit
5f3a17eb65
4 changed files with 34 additions and 3 deletions
|
@ -55,11 +55,13 @@ Metadata* NodeMetaRef::getmeta(bool auto_create)
|
|||
|
||||
void NodeMetaRef::clearMeta()
|
||||
{
|
||||
SANITY_CHECK(!m_is_local);
|
||||
m_env->getMap().removeNodeMetadata(m_p);
|
||||
}
|
||||
|
||||
void NodeMetaRef::reportMetadataChange(const std::string *name)
|
||||
{
|
||||
SANITY_CHECK(!m_is_local);
|
||||
// NOTE: This same code is in rollback_interface.cpp
|
||||
// Inform other things that the metadata has changed
|
||||
NodeMetadata *meta = dynamic_cast<NodeMetadata*>(m_meta);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue