1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-27 17:28:41 +00:00

Fix flowing water being always opaque

This commit is contained in:
Perttu Ahola 2011-11-15 22:21:12 +02:00
parent e4dff41560
commit 9fc78cbece
3 changed files with 6 additions and 3 deletions

View file

@ -245,11 +245,11 @@ struct ContentFeatures
void setTexture(u16 i, std::string name);
void setAllTextures(std::string name, u8 alpha=255)
void setAllTextures(std::string name, u8 alpha_=255)
{
for(u16 i=0; i<6; i++)
setTexture(i, name);
alpha = alpha;
alpha = alpha_;
// Force inventory texture too
setInventoryTexture(name);
}