aboutsummaryrefslogtreecommitdiff
path: root/src/nodedef.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/nodedef.cpp')
-rw-r--r--src/nodedef.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/nodedef.cpp b/src/nodedef.cpp
index 74d825362..7b723e958 100644
--- a/src/nodedef.cpp
+++ b/src/nodedef.cpp
@@ -164,6 +164,21 @@ public:
assert(c <= MAX_CONTENT);
return &m_content_features[c];
}
+ virtual void updateTextures(ITextureSource *tsrc)
+ {
+#ifndef SERVER
+ infostream<<"CNodeDefManager::updateTextures(): Updating "
+ <<"textures in node definitions"<<std::endl;
+ for(u16 i=0; i<=MAX_CONTENT; i++)
+ {
+ ContentFeatures *f = &m_content_features[i];
+ for(u16 j=0; j<6; j++)
+ tsrc->updateAP(f->tiles[j].texture);
+ if(f->special_atlas)
+ tsrc->updateAP(*(f->special_atlas));
+ }
+#endif
+ }
private:
ContentFeatures m_content_features[MAX_CONTENT+1];
};