summaryrefslogtreecommitdiff
path: root/src/nodedef.h
diff options
context:
space:
mode:
authorDániel Juhász <juhdanad@gmail.com>2017-05-19 07:46:10 +0200
committerLoïc Blot <nerzhul@users.noreply.github.com>2017-05-19 07:46:10 +0200
commit75c393c915ce7fa0e6529999f77c86f3a5897106 (patch)
treed6b87fe9f21f1992d4045a96a62c012b52fdc1df /src/nodedef.h
parent674400523e10624ae8320b0d18a05dbfd6dcac42 (diff)
downloadminetest-75c393c915ce7fa0e6529999f77c86f3a5897106.tar.gz
minetest-75c393c915ce7fa0e6529999f77c86f3a5897106.tar.bz2
minetest-75c393c915ce7fa0e6529999f77c86f3a5897106.zip
Fix alpha for liquid nodes (#5494)
Diffstat (limited to 'src/nodedef.h')
-rw-r--r--src/nodedef.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nodedef.h b/src/nodedef.h
index 4d3bacc6c..07a962ed0 100644
--- a/src/nodedef.h
+++ b/src/nodedef.h
@@ -382,13 +382,13 @@ struct ContentFeatures
void serializeOld(std::ostream &os, u16 protocol_version) const;
void deSerializeOld(std::istream &is, int version);
/*!
- * Since vertex alpha is no lnger supported, this method
- * adds instructions to the texture names to blend alpha there.
+ * Since vertex alpha is no longer supported, this method
+ * adds opacity directly to the texture pixels.
*
- * tiledef, tiledef_special and alpha must be initialized
- * before calling this.
+ * \param tiles array of the tile definitions.
+ * \param length length of tiles
*/
- void correctAlpha();
+ void correctAlpha(TileDef *tiles, int length);
/*
Some handy methods